Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
entries() {
return new Namespace.Duplicated(map((value, i) => [i, value], this));
}
keys() {
return new Namespace.Duplicated(map(([key, _]) => key, this));
}
entries() {
return new Namespace.Duplicated(map(value => [value, value], this));
}
map(mapFn) {
return this.__doCollectionTransform(map((value, i) => mapFn(value, i, ...this.__selfParam)));
}
flip() {
return this.__doCollectionTransform(map(([key, value]) => [value, key]));
}
return this.__doCollectionTransform(iterable =>
map(items => zipper(...items), this.__dynamicMethods.zip(iterable, ...args)),
);
map(mapFn) {
return this.__doCollectionTransform(map(item => mapFn(item, item, ...this.__selfParam)));
}
values() {
return new Namespace.Duplicated(map(([_, value]) => value, this));
}
entries() {
return new Namespace.Duplicated(map(_ => _, this));
}