Skip to content

Commit

Permalink
Version 0.4.6
Browse files Browse the repository at this point in the history
Changes:
  • Loading branch information
Frederik Tilkin committed Aug 22, 2023
1 parent c239628 commit 0c0e0a6
Show file tree
Hide file tree
Showing 142 changed files with 3,393 additions and 572 deletions.
74 changes: 44 additions & 30 deletions dist/cjs/interface/forEach.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/interface/forEach.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/interface/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
export * from "./forEach.js";
export * from "./itr8FromArray.js";
export * from "./itr8FromArrayAsync.js";
export * from "./itr8FromImpureFunction.js";
export * from "./itr8FromIterable.js";
export * from "./itr8FromSingleValue.js";
export * from "./itr8FromSingleValueAsync.js";
Expand Down
1 change: 1 addition & 0 deletions dist/cjs/interface/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/interface/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions dist/cjs/interface/itr8FromImpureFunction.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Turns a parameterless function into an Iterator that will produce results using
* the input function's return value. In case the function returns a promise, the result will be
* an AsyncIterator.
* Useful for 'impure' stuff like Math.random, or Date.now etc.
*
* @example
* ```typescript
* pipe(
* itr8FromImpureFunction(Math.random),
* take(3),
* itr8ToArray
* ); // => [0.2511072995514807, 0.04918679946517224, 0.48479881173432826]
* ```
* @param a anything like object, string, number, ...
* @returns an iterator
*
* @category interface/standard
*/
declare function itr8FromImpureFunction<T>(f: () => T | Promise<T>): IterableIterator<T> | AsyncIterableIterator<T>;
export { itr8FromImpureFunction };
33 changes: 33 additions & 0 deletions dist/cjs/interface/itr8FromImpureFunction.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cjs/interface/itr8FromImpureFunction.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/interface/itr8Pushable.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions dist/cjs/interface/itr8ToArray.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/interface/itr8ToArray.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0c0e0a6

Please sign in to comment.