Created
January 17, 2012 01:22
-
-
Save masakielastic/1623980 to your computer and use it in GitHub Desktop.
filter と partition と break の比較
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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