tim-smart / elemental

A toolkit for writing software in dart. Effect-system, dependency management and more!
21 stars 1 forks source link

Question: get in/set in functions? #3

Open loganpowell opened 1 year ago

loganpowell commented 1 year ago

Hi @tim-smart, am new to Dart and looking around the ecosystem for things I've grown attached to in JS. I was happy to find nucleus. It is similar in spirit to one of my favorite JS libs. I was wondering if you've considered adding some lensed/path-based accessors/setters to Nucleus?

tim-smart commented 1 year ago

No I haven't considered adding lens/path access.

I found the select API to meet all my needs: https://pub.dev/documentation/nucleus/latest/nucleus/AtomExtension/select.html

loganpowell commented 1 year ago

Is there any additional documentation on how I might use this to mutate/deep-get some nested state (e.g., a nested Map)?