2.5.22 • Published 4 years ago

@extra-iterable/from-call.min v2.5.22

Weekly downloads
17
License
MIT
Repository
github
Last release
4 years ago

Generates iterable from function call. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Alternatives: from, fromRange, fromCall, fromApply. Similar: callable, fromCall.

This is part of package extra-iterable.

This is browserified, minified version of @extra-iterable/from-call. It is exported as global variable iterable_fromCall. CDN: unpkg, jsDelivr.

iterable.fromCall(fc, ...as);
// fc: called function
// as: arguments
const iterable = require("extra-iterable");

var x = iterable.fromCall(Math.random);
[...iterable.take(x, 4)];
// [
//   0.9563611116619364,
//   0.9938159365212336,
//   0.38494305694810205,
//   0.06828624643528514
// ]

References

2.5.22

4 years ago

2.5.21

4 years ago

2.5.18

4 years ago

2.5.15

4 years ago

2.5.17

4 years ago

2.5.20

4 years ago

2.5.14

5 years ago

2.5.13

5 years ago

2.5.12

5 years ago

2.5.10

5 years ago

2.5.11

5 years ago

2.5.8

5 years ago

2.5.9

5 years ago

2.5.7

5 years ago