@bodar/totallylazy
Advanced tools
Comparing version 0.443.286 to 0.444.287
@@ -18,2 +18,3 @@ import { Transducer } from "./transducers"; | ||
export declare function iterable<T>(values: ArrayLike<T>): Iterable<T>; | ||
export declare function asyncIterable<T>(values: Array<Promise<T>>): AsyncIterable<T>; | ||
export declare function isArrayLike(value: any): value is ArrayLike<any>; | ||
@@ -20,0 +21,0 @@ export declare type IterableLike<T> = Iterable<T> | ArrayLike<T>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.single = exports.by = exports.toAsyncIterable = exports.array = exports.isArrayLike = exports.iterable = exports.toIterable = exports.isPromiseLike = exports.isAsyncIterable = exports.isIterable = exports.value = exports.key = exports.comparators = exports.descending = exports.ascending = void 0; | ||
exports.single = exports.by = exports.toAsyncIterable = exports.array = exports.isArrayLike = exports.asyncIterable = exports.iterable = exports.toIterable = exports.isPromiseLike = exports.isAsyncIterable = exports.isIterable = exports.value = exports.key = exports.comparators = exports.descending = exports.ascending = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -63,2 +63,10 @@ const sequence_1 = require("./sequence"); | ||
exports.iterable = iterable; | ||
function asyncIterable(values) { | ||
return tslib_1.__asyncGenerator(this, arguments, function* asyncIterable_1() { | ||
for (const t of values) { | ||
yield yield tslib_1.__await(t); | ||
} | ||
}); | ||
} | ||
exports.asyncIterable = asyncIterable; | ||
function isArrayLike(value) { | ||
@@ -65,0 +73,0 @@ return typeof value === "object" && typeof value['length'] === "number"; |
@@ -220,6 +220,6 @@ "use strict"; | ||
"symbols": [ | ||
"CAD$", | ||
"$", | ||
"C$", | ||
"¢", | ||
"CAD$" | ||
"¢" | ||
] | ||
@@ -346,3 +346,2 @@ }, | ||
"symbols": [ | ||
"LE", | ||
"£" | ||
@@ -438,4 +437,4 @@ ] | ||
"symbols": [ | ||
"GY$", | ||
"G$", | ||
"GY$", | ||
"$" | ||
@@ -645,5 +644,5 @@ ] | ||
"symbols": [ | ||
"MRF", | ||
"ރ", | ||
"Rf" | ||
"Rf", | ||
"MRF" | ||
] | ||
@@ -650,0 +649,0 @@ }, |
{ | ||
"name": "@bodar/totallylazy", | ||
"version": "0.443.286", | ||
"version": "0.444.287", | ||
"description": "Totallylazy", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:bodar/totallylazy.js.git", |
@@ -78,3 +78,3 @@ import { Comparator, Mapper, Reducer } from "./collections"; | ||
} | ||
export declare function take<A, B>(count: number): TakeTransducer<A>; | ||
export declare function take<A>(count: number): TakeTransducer<A>; | ||
export declare class DropTransducer<A> implements Transducer<A, A> { | ||
@@ -81,0 +81,0 @@ count: number; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
440966
6463