diff --git a/02-starting-out.hs b/02-starting-out.hs index a3e3f5b..4ba724d 100644 --- a/02-starting-out.hs +++ b/02-starting-out.hs @@ -30,12 +30,11 @@ duplicate xs = undefined {- - Imitate the functinality of zip - - The function "min x y" returns the lower of values x and y - For example "ziplike [1,2,3] ['a', 'b', 'c', 'd']" returns [(1,'a'), (2, 'b'), (3, 'c')] -} ziplike xs ys = undefined --- Split a list l at element k into a tuple: The first part up to and including k, the second part after k +-- Split a list l at element k (1-based) into a tuple: The first part up to and including k, the second part after k -- For example "splitAtIndex 3 [1,1,1,2,2,2]" returns ([1,1,1],[2,2,2]) splitAtIndex k l = undefined