Skip to content

Instantly share code, notes, and snippets.

@y-yu
Created November 19, 2012 11:08
Show Gist options
  • Save y-yu/4110144 to your computer and use it in GitHub Desktop.
Save y-yu/4110144 to your computer and use it in GitHub Desktop.
2.ml
let diff l1 l2 =
List.filter (fun e -> List.fold_left (fun x y -> y != e && x) true l2) l1;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment