fantasy-lenses icon indicating copy to clipboard operation
fantasy-lenses copied to clipboard

Is map correct?

Open SimonRichardson opened this issue 9 years ago • 1 comments

@puffnfresh would you expect the following be correct?

    var x = {a:{x:1}};
    Lens.objectLens('a').andThen(Lens.objectLens('x')).run(x).map(function(o) {
        console.log(o); // Expect {x:1}, Received {a:{x:1}}
        return o;
    }).extract();

SimonRichardson avatar Aug 11 '15 16:08 SimonRichardson

Looks very broken! :ghost:

puffnfresh avatar Aug 17 '15 10:08 puffnfresh