update inbox list
This commit is contained in:
26
vendor/scrivo/highlight.php/test/detect/sml/default.txt
vendored
Normal file
26
vendor/scrivo/highlight.php/test/detect/sml/default.txt
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
structure List : LIST =
|
||||
struct
|
||||
|
||||
val op + = InlineT.DfltInt.+
|
||||
|
||||
datatype list = datatype list
|
||||
|
||||
exception Empty = Empty
|
||||
|
||||
fun last [] = raise Empty
|
||||
| last [x] = x
|
||||
| last (_::r) = last r
|
||||
|
||||
fun loop ([], []) = EQUAL
|
||||
| loop ([], _) = LESS
|
||||
| loop (_, []) = GREATER
|
||||
| loop (x :: xs, y :: ys) =
|
||||
(case compare (x, y) of
|
||||
EQUAL => loop (xs, ys)
|
||||
| unequal => unequal)
|
||||
in
|
||||
loop
|
||||
end
|
||||
|
||||
end (* structure List *)
|
||||
|
||||
Reference in New Issue
Block a user