@elementary/core

0.1.4 • Public • Published

Elementary Core

Core Typeclasses and Functions governing the development of Elementary/Components

Get Started

# Install Core
$ yarn add @elementary/core

Usage

Compose

import { compose } from '@elementary/core'
compose(f, g)(val) === f(g(val)) //true

Maybe

import { Maybe } from '@elementary/core'

Maybe().of(1).map(x => x/2) //=> 0.5
Maybe().of(null).map(x => x/2) //=> null

** Api is still experimental, please don't use core's apis directly**

Readme

Keywords

none

Package Sidebar

Install

npm i @elementary/core

Weekly Downloads

8

Version

0.1.4

License

MIT

Last publish

Collaborators

  • rajatsharma