Skip to content

Instantly share code, notes, and snippets.

@awright18
Created March 3, 2017 12:37
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 awright18/b17f97c82edbd71a9244331c6f2c03b0 to your computer and use it in GitHub Desktop.
Save awright18/b17f97c82edbd71a9244331c6f2c03b0 to your computer and use it in GitHub Desktop.
//chunk records by 100
let longSeq = [1..10000]
let size = 100
let foo (x:IEnumerable<int>) = x |> Seq.iter (fun x -> printf "%i" x)
longSeq |> Seq.chunkBySize size |> Seq.iter (fun seq -> foo seq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment