johnthecat - Overview
🌚
Pinned Loading
-
regexp-toolset regexp-toolset Public
Collection of regexp utils, written in typescript
-
Simplified functor-less implementati... Simplified functor-less implementation of Van Laarhoven lenses in Typescript.
1
2
export type Lens<S, A> = (f: (y: A) => A, x: S) => S;
3
4
export const view = <S, A>(lens: Lens<S, A>) => (x: S) => {
5
let value: unknown = null;




