Jonas
I believe that is the intention of Stax's
reading the docs I believe that for collections functions such as add( .. ) return a new datastructure, and you use create to make the initital one.
https://github.com/jdegoes/stax/tree/master/src/main/haxe/haxe/data/collectionsnot tried it so not too sure how easy it is to mix with normal haxe or to setup and install,
interested to try but unless setup is very simple and straightforward and it does not have side effects, I am inclined to regard it from a distance with curiousity,
but I would be interested to know how you get on with it perhaps you can post back your feelings on trying it.
Cheers
Justin