rubico
Version:
[a]synchronous functional programming
31 lines (28 loc) • 659 B
JavaScript
const __ = require('./_internal/placeholder')
/**
* @name __
*
* @synopsis
* ```coffeescript [specscript]
* __ Symbol(placeholder)
* ```
*
* @description
* A special placeholder value `__` (two underscores) that denotes the position of an argument in a curried function.
*
* ```javascript [playground]
* const curriedFunction = curry.arity(3, Array.of, __, 2, 3)
*
* console.log(curriedFunction(1))
* ```
*
* See also:
* * [eq](/docs/eq)
* * [thunkify](/docs/thunkify)
* * [always](/docs/always)
* * [curry](/docs/curry)
* * [curry.arity](/docs/curry.arity)
* * [Transducer.map](/docs/Transducer.map)
*
*/
module.exports = __