Deep assign trait #7161
JonathanStarup
started this conversation in
Ideas
Replies: 2 comments
-
This idea could also be used for immutable data structures, where you could implement a "deep map" that works on the base type of the nested structure! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm not an FP expert, so perhaps I misunderstand. But it sounds a bit like lens to me. https://hackage.haskell.org/package/lens-5.2.3/docs/Control-Lens.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Fortran you can write
which means that all elements of
a
should be zero. So a 3D array has all its elements be mutated to 0. This is also true for any dimensional array. In Flix this could also be true for refs, or refs of arrays of refs, etc.Solution with associated types/effects
Beta Was this translation helpful? Give feedback.
All reactions