From 470ac47d06f9060e012d9025bf234fab5e10499d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vegard=20L=C3=B8kken?= Date: Thu, 17 Oct 2019 20:07:15 +0200 Subject: [PATCH] Add range operator to list of creators --- src/data/creation-examples.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/data/creation-examples.js b/src/data/creation-examples.js index 83227e4..2d5d810 100644 --- a/src/data/creation-examples.js +++ b/src/data/creation-examples.js @@ -26,6 +26,14 @@ export const creationExamples = { } }, + range: { + label: 'Observable.range(3, 7).delayWhen(x => timer(x * 10))', + inputs: [], + apply: function(inputs, scheduler) { + return Observable.range(3, 7).delayWhen(x => Observable.timer(x * 10, scheduler)); + } + }, + timer: { label: 'Observable.timer(30, 10)', inputs: [],