Skip to content

Instantly share code, notes, and snippets.

@ashmind
Created July 17, 2012 11:45
Show Gist options
  • 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