Skip to content

Instantly share code, notes, and snippets.

@earthling-shruti
Created January 1, 2013 05:56
Show Gist options
  • Save earthling-shruti/4425434 to your computer and use it in GitHub Desktop.
Save earthling-shruti/4425434 to your computer and use it in GitHub Desktop.
let rec xs = [if x `elem` [1,2..] then x else rec x| x <- xs]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment