These are chat archives for ramda/ramda
R.path? As per docs,
R.lensPathis meant to be used with lens functions such as
lensProp, you've created a way to both read and set the value in an object. You can set the value using
set, you can read it using
get, and you can do a map-like transformation using
If you just need to get a value that exists in an object then
path is probably a more straightforward choice. Lenses add a layer of indirection that allow us to perform additional operations as well as abstract over them.
They are pretty much just a representation of a getter and a setter for a part of an object or value, wile
path is simply a getter for a nested value.