x/rambda/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 })})