Last active
August 30, 2018 14:52
-
-
Save codingedgar/e8f10023666141899f0d71989afb82f6 to your computer and use it in GitHub Desktop.
until transducer: map_double
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { double_every_element } from './double_every_element' | |
test('double every element', () => { | |
expect(double_every_element([1, 2, 3])).toEqual([2, 4, 6]) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { map } from 'ramda' | |
export const double_every_element = | |
map( | |
(number: number) => number * 2 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment