DEV Community

Discussion on: No duplicates challenge in Elm

Collapse
 
1hko profile image
1hko • Edited

the x::y::xs -> case does not recur in the else branch, so an input of [1,2,2,2,3,3,3] will simply return [1] when the first two elements of the input do not match - leaving the [2,2,2,3,3,3] portion completely unprocessed.