@no-day/fp-ts-numeric-vectors
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-rc.4 • Public • Published

fp-ts-numeric-vectors

Immutable numeric vectors for fp-ts.

Install

npm install fp-ts @no-day/fp-ts-numeric-vectors

Docs

API

Examples

Simple

import { add, sub, div, Vec2n } from "fp-ts-numeric-vectors/vec2n";
import { pipe } from "fp-ts/function";

const result: Vec2n = pipe(
  add([0.456, 4.34], [0.1, 2]),
  _ => sub(_, [1, 3.1]),
  _ => div(_, [2, 2])
);

console.log(result);

Readme

Keywords

none

Package Sidebar

Install

npm i @no-day/fp-ts-numeric-vectors

Weekly Downloads

1

Version

0.1.0-rc.4

License

MIT

Unpacked Size

59.2 kB

Total Files

18

Last publish

Collaborators

  • thought2