Feature Question: Traversal for Record #540
Replies: 3 comments 3 replies
-
In this case, I may have to define |
Beta Was this translation helpful? Give feedback.
-
Is it better to use |
Beta Was this translation helpful? Give feedback.
-
Well, you will not escape loops if you want to map an array, but the whole point of Dex is to allow you to write out the loops without having to worry that they're going to be inefficient! So if |
Beta Was this translation helpful? Give feedback.
-
lens of dex is iso like
#foo
.https://google-research.github.io/dex-lang/prelude.html#s-42
When define RGB as follows, how do we describe the lens to get
Fin 3 => Fin 8 => Float32
of#r
axis fromFin 3 => Fin 8 => RGB Float32
?Is it possible to use
overField
to add+1
to the#r
element?Does dex have traversal of lens?
Beta Was this translation helpful? Give feedback.
All reactions