Skip to content

Jozty/Fae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fae

A functional library for Deno inspired from Ramda.

Installing

Deno allows you to directly import modules from URLs!

To import and use the client in your file, add the following import statement:

import * as Fae from 'https://deno.land/x/fae/mod.ts'

Function usage and documentation can be found here

Running tests

deno run --allow-read --allow-net specs/_run.ts

Usage

import * as Fae from 'https://deno.land/x/fae/mod.ts'
Fae.add(10, 20) // => 30
Fae.add(10)(20) // => 30
let add20 = Fae.add(20)
add20(10) // => 30
add20(125) // => 145
Fae.addIndex(Fae.map)(Fae.add)([10, 20, 30]) // => [10, 21, 32]

const array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
const transformer = Fae.pipe(
  Fae.map(inc),
  Fae.filter(even),
  Fae.take(3)
)
transformer(array) // [2, 4, 6]