I wrote a short blog post on immutable datastructures in #RakuLang. It's what I used for my #Uxntal to C compiler.
https://wimvanderbauwhede.codeberg.page/articles/immutable-datastructures-reduction/
https://wimvanderbauwhede.codeberg.page/articles/immutable-datastructures-reduction/
Immutable data structures and reduction in Raku
What does it take to bring functional programming to a stack-based assembly language?Wim Vanderbauwhede