Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created August 27, 2012 01:20
Show Gist options
  • Save Poincare/3484879 to your computer and use it in GitHub Desktop.
Save Poincare/3484879 to your computer and use it in GitHub Desktop.
myTakeWhile p x:xs
| p x = x ++ myTakeWhile p xs
| otherwise = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment