param.macro is a near-syntax level Babel plugin for partial application (and lambda parameters) that's roughly modeled after this proposal. You may want to read the introductory post and check out the online playground at https://param-macro.netlify.com.
I thought it might be useful as an approximation while the proposal works its way into Babel and beyond.
import { _ } from 'param.macro'
const add = (x, y) => x + y
const addOne = add(_, 1)
addOne(9)
// -> 10
param.macro
is a near-syntax level Babel plugin for partial application (and lambda parameters) that's roughly modeled after this proposal. You may want to read the introductory post and check out the online playground at https://param-macro.netlify.com.I thought it might be useful as an approximation while the proposal works its way into Babel and beyond.