@@ -44,27 +44,27 @@ bindEither = either (\e -> \_ -> Left e) (\a -> \f -> f a)
45head :: forall a. [a] -> a
45head :: forall a. [a] -> a
46head = \xs -> case xs of
46head = \xs -> case xs of
47− [x:_] -> x
47+ x : _ -> x
49headSafe :: forall a. [a] -> Maybe a
49headSafe :: forall a. [a] -> Maybe a
50headSafe = \xs -> case xs of
50headSafe = \xs -> case xs of
51− [x:_] -> Just x
51+ x : _ -> Just x
52 _ -> Nothing
52 _ -> Nothing
54tail :: forall a. [a] -> [a]
54tail :: forall a. [a] -> [a]
55tail = \xs -> case xs of
55tail = \xs -> case xs of
56− [_:xs] -> xs
56+ _ : xs -> xs
58tailSafe :: forall a. [a] -> Maybe [a]
58tailSafe :: forall a. [a] -> Maybe [a]
59tailSafe = \xs -> case xs of
59tailSafe = \xs -> case xs of
60− [_:xs] -> Just xs
60+ _ : xs -> Just xs
61 _ -> Nothing
61 _ -> Nothing
63foreign import map :: forall a b. (a -> b) -> [a] -> [b]
63foreign import map :: forall a b. (a -> b) -> [a] -> [b]
65foldr :: forall a b. (a -> b -> a) -> a -> [b] -> a
65foldr :: forall a b. (a -> b -> a) -> a -> [b] -> a
66foldr = \f -> \a -> \bs -> case bs of
66foldr = \f -> \a -> \bs -> case bs of
67− [b:bs] -> f (foldr f a bs) b
67+ b : bs -> f (foldr f a bs) b
70foldl :: forall a b. (a -> b -> b) -> b -> [a] -> b
70foldl :: forall a b. (a -> b -> b) -> b -> [a] -> b
@@ -130,7 +130,7 @@ range = \lo -> \hi -> {
131zipWith :: forall a b c. (a -> b -> c) -> [a] -> [b] -> [c]
131zipWith :: forall a b c. (a -> b -> c) -> [a] -> [b] -> [c]
132zipWith = \f -> \as -> \bs -> case { as: as, bs: bs } of
132zipWith = \f -> \as -> \bs -> case { as: as, bs: bs } of
133− { as = [a:as1], bs = [b:bs1] } -> cons (f a b) (zipWith f as1 bs1)
133+ { as = a : as1, bs = b : bs1 } -> cons (f a b) (zipWith f as1 bs1)
136any :: forall a. (a -> Boolean) -> [a] -> Boolean
136any :: forall a. (a -> Boolean) -> [a] -> Boolean
@@ -171,7 +171,7 @@ zip = zipWith tuple
172unzip :: forall a b. [Tuple a b] -> Tuple [a] [b]
172unzip :: forall a b. [Tuple a b] -> Tuple [a] [b]
173unzip = \ts -> case ts of
173unzip = \ts -> case ts of
174− [t:ts1] -> case unzip ts1 of
174+ t : ts1 -> case unzip ts1 of
175 { fst = as, snd = bs } -> tuple (cons t.fst as) (cons t.snd bs)
175 { fst = as, snd = bs } -> tuple (cons t.fst as) (cons t.snd bs)
176 [] -> tuple [] []
176 [] -> tuple [] []