2 ms·
JavaScript argument list evaluation is from left to right, right? pipe(64,Math.sqrt,Math.sin) and pipe(pipe(64, Math.sqrt), Math.sin) are equivalent.
by nabla9 8y ago
JavaScript argument list evaluation is from left to right, right?
pipe(64,Math.sqrt,Math.sin)
and
pipe(pipe(64, Math.sqrt), Math.sin)
are equivalent.
- Spivak 8y agoIf you just define a simple function pipe(val, func) => func(val) then they wouldn't be equivalent but you absolutely could define pipe so they would be.