iteray
v0.5.1
Published
a collection of functions for use with Iterables, AsyncIterables, and Arrays
Downloads
522
Readme
Iteray!
a collection of functions for use with Iterable, AsyncIterable, and Array
You already know the basic operations because they're the methods for Array: concat
, every
, filter
, etc.
Now you can use them on Iterable, AsyncIterable (a lightweight stream), arguments, Object properties, Map, Set, WeakMap, WeakSet, and all of the Immutable.js data structures*.
Why is this cool? Because you can use exactly the same code for time and space operations!
Huh?
That means you can test your streaming code using arrays!
The API documentation is in the wiki.
*Much of the implementation is TBD. Pull requests welcome.
Copyright
Copyright 2016 David Braun
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
these files except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
. Unless required by
applicable law or agreed to in writing, software distributed under the License
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.