deno.land / x / rambda@v9.1.1 / source / chain-spec.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import {chain} from 'rambda'
const list = [1, 2, 3]const fn = (x: number) => [`${x}`, `${x}`]
describe('R.chain', () => { it('without passing type', () => { const result = chain(fn, list) result // $ExpectType string[]
const curriedResult = chain(fn)(list) curriedResult // $ExpectType string[] })})
rambda

Version Info

Tagged at
2 months ago