How to use the iter-tools/es5/map function in iter-tools

To help you get started, we’ve selected a few iter-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github conartist6 / sequins / src / subtypes / sequence / indexed.js View on Github external
entries() {
    return new Namespace.Duplicated(map((value, i) => [i, value], this));
  }
github conartist6 / sequins / src / subtypes / sequence / keyed.js View on Github external
keys() {
    return new Namespace.Duplicated(map(([key, _]) => key, this));
  }
github conartist6 / sequins / src / subtypes / sequence / set.js View on Github external
entries() {
    return new Namespace.Duplicated(map(value => [value, value], this));
  }
github conartist6 / sequins / src / subtypes / indexed-mixin.js View on Github external
map(mapFn) {
      return this.__doCollectionTransform(map((value, i) => mapFn(value, i, ...this.__selfParam)));
    }
github conartist6 / sequins / src / subtypes / keyed-mixin.js View on Github external
flip() {
      return this.__doCollectionTransform(map(([key, value]) => [value, key]));
    }
github conartist6 / sequins / src / subtypes / indexed-mixin.js View on Github external
return this.__doCollectionTransform(iterable =>
        map(items => zipper(...items), this.__dynamicMethods.zip(iterable, ...args)),
      );
github conartist6 / sequins / src / subtypes / duplicated-mixin.js View on Github external
map(mapFn) {
      return this.__doCollectionTransform(map(item => mapFn(item, item, ...this.__selfParam)));
    }
github conartist6 / sequins / src / subtypes / sequence / keyed.js View on Github external
values() {
    return new Namespace.Duplicated(map(([_, value]) => value, this));
  }
github conartist6 / sequins / src / subtypes / sequence / keyed.js View on Github external
entries() {
    return new Namespace.Duplicated(map(_ => _, this));
  }