DEV Community

Discussion on: Are there functions similar to Ruby's `dig` in other languages?

Collapse
 
baweaver profile image
Brandon Weaver

Haskell and other functional languages have Lenses, which are roughly equivalent to focusing on a value or path and either getting or setting it. Imagine dig with a related bury function and you get close.

I'd mentioned it in this particular Storybook post in Part Four, though it may make more sense to start at Part One for continuity