Created
June 7, 2011 02:40
-
-
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
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
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