devmotion / Accessors.jl

Update immutable data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessors

DocStable DocDev CI

The goal of Accessors.jl is to make updating immutable data simple. It is the successor of Setfield.jl.

Usage

Updating immutable data was never easier:

using Accessors
@set obj.a.b.c = d

To get started, see this tutorial and/or watch this video:

JuliaCon2020 Changing the immutable

Featured extensions

  • AccessorsExtra.jl [docs] implements setters for types from other packages and includes additional optics

About

Update immutable data

License:Other


Languages

Language:Julia 100.0%