Accessors.jl icon indicating copy to clipboard operation
Accessors.jl copied to clipboard

Update immutable data

Results 54 Accessors.jl issues
Sort by recently updated
recently updated
newest added

Copy-pasted till depth=4, seems to infer fine. The plan is to make the same kind of macro as with `getall` in the end, after all other questions are resolved. The...

Hi! Wanted to share that I've registered `AccessorsExtra.jl` focusing on integrations of Accessors with other packages: StructArrays, AxisKeys, IntervalSets, and more. It also defines a couple of more opinionated lenses....

Thanks for the package. Very useful. I was wondering if there was a functional implementation of the `@set` macro. I mean, something that allows me to do stuff like: ```...

Because of method invalidations, Requires.jl can cause package load times to be much longer. Accessors currently uses Requires for StaticArrays.jl, which is fairly heavy-weight. But that package has recently been...

Some existing optics, such as `Elements()`, `If()` and `Recursive()`, can only be `modify`ed - one cannot retrieve the values specified by them. I understand that it's not obvious how to...

This PR adds get/set queries as discussed in https://github.com/JuliaObjects/Accessors.jl/issues/9, returning a `Tuple` of values from an object, or setting object values from a `Tuple` Currently you can select objects by...

The main common usecase is using `@(re)set` with an array element, as in `@set $(x[i]).a.b = 123` and `@reset $(x[i]).a.b = 123`. Currently, these require a temporary variable: ``` old...

It would be very useful to have a function that can determine if an object obeys the lens API. Ideally with traits. Eg something like ```julia julia> is_optic(@optic _.a) Val{true}()...

Just wondering if this is a bug or a feature. Using the julia docs example: ```julia julia> struct SummedArray{T @set sa.sum = 5 ERROR: MethodError: no method matching SummedArray(::Vector{Int64}, ::Int64)...

In Accessors v0.1.5. Breaks down when the type parameter is not "used" in the struct. ```julia julia> using Accessors julia> struct MyType{T} i::Int64 end julia> m = MyType{String}(42) MyType{String}(42) julia>...