Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun split l =
- if null l then ([],[])
- else if length l = 1 then ([hd l],[])
- else ([nth(l,0)],[nth(l,1)]) @ split drop(l, 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement