Advertisement
Guest User

Untitled

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