Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
79374b5b
Commit
79374b5b
authored
Aug 08, 2001
by
simonmar
Browse files
[project @ 2001-08-08 14:21:07 by simonmar]
semantics of take, drop and splitAt have changed
parent
0161fb7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/tests/lib/should_run/list001.stdout
View file @
79374b5b
...
...
@@ -21,12 +21,12 @@ foldr1 []
scanr1 []
[1,2,3,4,1,2,3,4,1,2]
(["x","x","x","x"],[],[1,2,3,4])
take (-1)
[]
[["abc","abc"],[],["","",""]]
[[6,7,8,9,10],[1,2,3,4,5,6,7,8,9,10],[]]
drop (-1)
[]
[([1,2,3,4,5],[6,7,8,9,10]),([1,2,3,4],[])]
splitAt (-1
)
([],[1,2,3,4,5,6,7,8,9,10]
)
([1,2,3,4],[5,6,7,8,9,10])
([],[1,2,3,4,5,6,7,8,9,10])
[[10,9,8,7,6,5,4,3,2,1],[]]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment