UNPKG

foci

Version:

Lens-like functionality with a lodash-style interface.

11 lines (9 loc) 227 B
import Const from '../types/Const.js' import compile from '../compiler/compile.js' // get :: Lens<a, b> -> b -> a export const get = lens => ( obj => ( compile(lens)(Const)(obj).run ) ) export const view = get