deno.land / x / rambda@v9.1.1 / source / once-spec.ts
12345678910111213import {once} from 'rambda'
describe('R.once', () => { it('happy', () => { const runOnce = once((x: number) => { return x + 2 })
const result = runOnce(1) result // $ExpectType number })})
Version Info