Skip to content

Instantly share code, notes, and snippets.

@ashmind
Created July 17, 2012 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashmind/3128973 to your computer and use it in GitHub Desktop.
Save ashmind/3128973 to your computer and use it in GitHub Desktop.
AlmostLinq
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