File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ macid = "TODO"
3535-- other available Prelude functions
3636-----------------------------------------------------------------------------------------------------------
3737last :: [a ] -> a
38- last xs = error " TODO implement last "
38+ last xs = head ( take ( length xs - 1 ) xs)
3939
4040-- Exercise B
4141-----------------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 66packages: []
77snapshots:
88- completed:
9- size: 586923
10- url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/18/9 .yaml
11- sha256: 9f9fe35c949414146840a985fb228fd397c504d1781b834bfc9ab935f4d27df6
9+ size: 534126
10+ url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/31 .yaml
11+ sha256: 637fb77049b25560622a224845b7acfe81a09fdb6a96a3c75997a10b651667f6
1212 original: lts-16.31
You can’t perform that action at this time.
0 commit comments