Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Last active September 14, 2015 12:30
Show Gist options
  • Save bjartwolf/d1bf94521f48ae74809b to your computer and use it in GitHub Desktop.
Save bjartwolf/d1bf94521f48ae74809b to your computer and use it in GitHub Desktop.
let takeSkip2 (s: IEnumerable<byte>) (n: int) : (byte[] * IEnumerable<byte>) =
let c = Seq.cache s
(c |> Seq.truncate n |> Seq.toArray, c |> Seq.skip n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment