Skip to content

Instantly share code, notes, and snippets.

@AlexCuse
Created June 7, 2011 02:40
Show Gist options
  • Save AlexCuse/1011592 to your computer and use it in GitHub Desktop.
Save AlexCuse/1011592 to your computer and use it in GitHub Desktop.
Attempting Sequence 'merge' - look at LazyList in F# power pack for other possibilities
module Seq
#light
let rec merge s1 s2 =
seq {
yield s1 |> Seq.head
yield s2 |> Seq.head
yield! merge s1 s2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment