Answers for "haskell split a list at position n"

0

haskell split a list at position n

--input:
splitAt n list

--output:
([part 1], [part2])

--example input:
splitAt 3 [1,2,3,4,5,6]

--example output:
([1,2,3], [4,5,6])
Posted by: Guest on January-09-2021

Browse Popular Code Answers by Language