Idris-dev/test/delab001/expected
David Raymond Christiansen 6c4553c31f Make --quiet imply non-verbosity
This causes Idris to not emit messages about "Type checking ...." while
in quiet mode, which improves the portability of tests to Windows (due
to the slash facing the other way there). It also makes tests a bit more
robust with regards to their source files changing names.
2015-04-01 17:48:17 +02:00

13 lines
315 B
Plaintext

foo : Nat -> String
foo n = case n of
0 => "z"
S _ => "s"
bar : Nat -> String -> String
bar x y = case x of
0 => y
S _ => (y ++ y)
append : List a -> List a -> List a
append xs ys = case xs of
[] => ys
(x :: xs) => (x :: (append xs ys))