Created
July 17, 2012 11:45
-
-
Save ashmind/3128973 to your computer and use it in GitHub Desktop.
AlmostLinq
This file contains 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
open System | |
let items = [-2; -1; 0; 1; 2] | |
let where = Seq.filter | |
let select = Seq.map | |
let each = Seq.iter | |
let positive x = x > 0 | |
items | |
|> where positive | |
|> select ((*)2) | |
|> each (printf "%d ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment