Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 401 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 401 Bytes

futil

import { makeContainer } from "https://esm.sh/gh/gnlow/futil/mod.ts"
const container = makeContainer({})

container("hello")
    .length
    .pipe(x => x * 2)
    .get() // 10

container("hello")
    .repeat(3)
    .get() // "hellohellohello"
const container = makeContainer({
    double: (x: number) => x * 2,
})
container(123)
    .double()
    .get() // 246