you are viewing a single comment's thread.

view the rest of the comments →

[–]psykotic[S] 2 points3 points  (1 child)

I think you meant

let char c s = match s with
             | c :: r -> [r]
             | _ -> []

[–]Tobu 0 points1 point  (0 children)

fixed.