git.iko.soy/rowtype-yoga/purescript-native
on 28fa718 help sign in
12 lines 245 B history raw
1module Main where
3import Prelude
4import Arrays
6tails = map (\(_:xs) -> xs)
8main =
9 let ts = tails [[1, 2, 3], [4, 5], [6]] in
10 if ts == [[2, 3], [5], []]
11 then Trace.trace "Done"
12 else Errors.throwError "Incorrect result from 'tails'."