UNPKG

moy-fp

Version:
18 lines (15 loc) 362 B
import __ from '../../src/Function/__' /** * Number -> [a] -> [[a]] */ import aperture from '../../src/List/aperture' test('aperture(not using __)', () => { expect( aperture(2)([1, 2, 3, 4]) ).toEqual([[1, 2], [2, 3], [3, 4]]) }) test('aperture(using __)', () => { expect( aperture(__, [1, 2, 3, 4])(2) ).toEqual([[1, 2], [2, 3], [3, 4]]) })