Skip to content

Instantly share code, notes, and snippets.

@helios2k6
Created September 3, 2014 12:57
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 helios2k6/e75bd3c4fd87ce142341 to your computer and use it in GitHub Desktop.
Save helios2k6/e75bd3c4fd87ce142341 to your computer and use it in GitHub Desktop.
let appendItem item sequence = seq { yield! sequence; yield item }
let testOverflow() =
seq { for i in 1..5000 do yield i }
|> Seq.fold (fun state item -> appendItem item state) Seq.empty
|> Seq.iter ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment