Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fp-ts-iterable

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fp-ts-iterable

fp-ts bindings for `Iterable` types, allowing for programming lazy and infinite lists.

  • 4.2.3
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

fp-ts-iterable

fp-ts bindings for Iterable types, allowing for programming lazy and infinite lists.

This could (soon) be used as a drop in replacement for the module fp-ts/ReadonlyArray

Installation

# npm
npm install fp-ts-iterable

# yarn
yarn add fp-ts-iterable

# pnpm
pnpm add fp-ts-iterable

Documentation

Please visit the documentation for the API surface.

Upcoming

  • Structures
    • IterableTask for interop with AsyncIterator
    • NonemptyIterable
    • NonempyIterableTask

Recommendations

Coersion from types that are Iterable

  • If coersing from something like a ReadonlyArray, it's recommended to coerce it to an Iterable using FromReadonlyArray.
  • There is no performance benefit, but it could alleviate bugs before they happen.

\*Right* functions

  • All functions using the word Right in their names require buffering all values so it knows where the end is.
  • If the Iterable is large or infinite, it may cause an out of memory error. Ensure infinite iterables end by using a skip combinator that does not contain the word Right.

AsyncIterable (Upcoming)

  • AsyncIterable<A> is Iterable<Promise<A>>, but should be coerced to Iterable<Task<A>> via FromAsyncIterable

FAQs

Package last updated on 30 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc