JuliaFolds2 / BangBang.jl

Immutables as mutables, mutables as immutables.
https://juliafolds2.github.io/BangBang.jl/dev/
MIT License
14 stars 6 forks source link

BangBang

Stable Dev Codecov Aqua QA GitHub commits since latest release (branch)

BangBang.jl implements functions whose name ends with !!. Those functions provide a uniform interface for mutable and immutable data structures. Furthermore, those functions implement the "widening" fallback for the case when the usual mutating function does not work (e.g., push!!(Int[], 1.5) creates a new array Float64[1.5]).

See the supported functions in the documentation