moy-fp
Version:
A functional programming library.
18 lines (15 loc) • 328 B
JavaScript
import __ from '../../src/Function/__'
/**
* Number -> Number -> [a] -> [a]
*/
import remove from '../../src/List/remove'
test('remove(not using __)', () => {
expect(
remove(1)(2)([1, 2, 3, 4])
).toEqual([1, 4])
})
test('remove(using __)', () => {
expect(
remove(1, __, [1, 2, 3, 4])(2)
).toEqual([1, 4])
})