Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
untitled notebook
node v6.17.1
version:
master
endpoint
share
tweet
const flip = require('just-flip'); const map = require('just-map-object'); const curry = require('just-curry'); const numbers = {x: 5, y: 10}; const flippedMap = flip(map); const double = curry(flippedMap, (_, number) => number * 2); double(numbers) // {x: 10, y: 20];
Created from: http://anguscroll.com/just/just-flip
Loading…
no comments
sign in
to comment