Closed navbruce closed 6 years ago
Only the chain line changes:
chain
import { lift, chain } from 'hyperlane' const ar = [ 'a', 'b', 'c'] const peek = lift(x => {console.log(x); return x}) chain(peek, peek, peek)(ar)
(produces no output)
import { lift, chain } from 'hyperlane' const ar = [ 'a', 'b', 'c'] const peek = lift(x => {console.log(x); return x}) chain(peek(), peek, peek)(ar)
[ 'a', 'b', 'c' ] [ 'a', 'b', 'c' ] [ 'a', 'b', 'c' ]
import { lift, chain } from 'hyperlane' const ar = [ 'a', 'b', 'c'] const peek = lift(x => {console.log(x); return x}) chain(peek, peek(), peek)(ar)
[Function] [Function]
nice catch!.. This inconsistency have been bugging me for a while, but I wasn't able to quite narrow it down to a simple test case
Should be fixed
Looks good
Only the
chain
line changes:(produces no output)
[ 'a', 'b', 'c' ] [ 'a', 'b', 'c' ] [ 'a', 'b', 'c' ]
[Function] [Function]