Published
Edited
Jul 3, 2021
1 fork
Importers
2 stars
Insert cell
Insert cell
Insert cell
import {__,add,compose,equals,flip,modulo} from '@christer/ramda'
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
cs`
even = complement modulo __,2
map even, [3,4,5,6]
`
Insert cell
cs`
odd = compose(
equals 1
flip(modulo) 2
)
map odd, [3,4,5,6]
`
Insert cell
mod = flip(modulo)
Insert cell
isOdd = compose(equals(1),modulo(__,2))
Insert cell
isOdd(7)
Insert cell
isOdd(8)
Insert cell
Insert cell
Insert cell
cs = (code) => CS.run('"use strict"\nreturn (' + code[0].trim() + ')')
Insert cell
Insert cell
Object.assign(window,R)
Insert cell
//window.R = R
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more