Skip to content

Instantly share code, notes, and snippets.

@cwharris
Last active December 16, 2015 06:19
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 cwharris/5391043 to your computer and use it in GitHub Desktop.
Save cwharris/5391043 to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
var items = new[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }
.Select(x =>
{
Console.WriteLine(x);
return x;
})
.Select(x => Observable.Range(x, 1))
.Concat()
.Take(3)
.Subscribe(x =>
{
Console.WriteLine("subscribe: {0}", x);
});
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment