functional

functional

Not enough ratings
SplitAt
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
781.000 B
10 Jun, 2023 @ 8:30pm
1 Change Note ( view )

Subscribe to download
SplitAt

Description
Write a function that takes a list L and a number N, and gives
a pair (A, B) such that A contains N elements, and B contains
all other elements.
Example: SPLITAT [1,2,3,4,5] 3 -> ([1,2,3],[4,5])