Note that in the above example, the expected value of the resulting collection at bar is 'baz'. In actuality, the resulting value will be x => 'baz', because setIn() will set the target value as a reference to the function, rather than evaluating the function to get 'baz'
To get the results described in the README, the example would read:
In #55 I alluded to this, but currently
setIn()
has this API:thus:
However, the README describes the API like so:
Note that in the above example, the expected value of the resulting collection at
bar
is'baz'
. In actuality, the resulting value will bex => 'baz'
, becausesetIn()
will set the target value as a reference to the function, rather than evaluating the function to get'baz'
To get the results described in the README, the example would read:
I think this might just be a typo in the README, but I want to make sure first.