Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Clojure has "transient" (mutable) forms of its immutable datastructures, which can be bashed in place, but they're not allowed beyond function boundaries in either direction (I think). So you convert (copy?) to transient, mutate it in-place, then convert back to "persistent" before returning it.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: