Replies: 1 comment
-
|
Hi, that doesn't work because so I haven't decided yet the whole story around reffed (pointers to values) and derefed (values) values. Ref makes a pointer and deref turns it back to value. What I haven't yet figured out is if builtins should work with both, values and pointers of values, or you would explicitly need them converted back to vales I now make changes so -> ~> also accept pointers so your code above should work. And I need to improve that error message, always that I get it , it doesn't reall make that much sense, and some more inforamtion would help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
x: { 1 2 3 4 }
x -> 1
returns 2
var 'y ref { 1 2 3 4 }
append! 5 y
y -> 1
Error: Wrong type or missing key for get-arrow
deref y
y -> 1
Error: Wrong type or missing key for get-arrow
How do you access a value from y after making it mutable so you can append?
Beta Was this translation helpful? Give feedback.
All reactions