callbag-skip

WebJar for callbag-skip

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

callbag-skip
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

callbag-skip
WebJar for callbag-skip
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/staltz/callbag-skip

Скачать callbag-skip

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/callbag-skip/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>callbag-skip</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/callbag-skip/
implementation 'org.webjars.npm:callbag-skip:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/callbag-skip/
implementation ("org.webjars.npm:callbag-skip:1.0.0")
'org.webjars.npm:callbag-skip:jar:1.0.0'
<dependency org="org.webjars.npm" name="callbag-skip" rev="1.0.0">
  <artifact name="callbag-skip" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='callbag-skip', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "callbag-skip" % "1.0.0"
[org.webjars.npm/callbag-skip "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

callbag-skip

Callbag operator that skips the first N data points of a source. Works on either pullable and listenable sources.

npm install callbag-skip

example

On a listenable source:

const interval = require('callbag-interval');
const observe = require('callbag-observe');
const skip = require('callbag-skip');

const source = skip(3)(interval(1000));

source(0, observe(x => console.log(x))); // 3
                                         // 4
                                         // 5
                                         // 6
					 // ...

On a pullable source:

const fromIter = require('callbag-from-iter');
const iterate = require('callbag-iterate');
const skip = require('callbag-skip');

function* range(from, to) {
  let i = from;
  while (i <= to) {
    yield i;
    i++;
  }
}

const source = skip(4)(fromIter(range(10, 20)));

source(0, iterate(x => console.log(x))); // 14
                                         // 15
                                         // 16
                                         // 17
                                         // 18
                                         // 19
                                         // 20

Версии библиотеки

Версия
1.0.0