Created
March 3, 2017 12:37
-
-
Save awright18/b17f97c82edbd71a9244331c6f2c03b0 to your computer and use it in GitHub Desktop.
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
//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