Skip to content

Instantly share code, notes, and snippets.

@masakielastic
Created January 17, 2012 01:22
Show Gist options
  • Save masakielastic/1623980 to your computer and use it in GitHub Desktop.
Save masakielastic/1623980 to your computer and use it in GitHub Desktop.
filter と partition と break の比較
ghci > filter odd [2,4,6,7,8,9]
[7,9]
ghci > partition odd [2,4,6,7,8,9]
([7,9],[2,4,6,8])
ghci > break odd [2,4,6,7,8,9]
([2,4,6],[7,8,9])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment