Skip to content

Commit

Permalink
Made fix to work with Tuples again
Browse files Browse the repository at this point in the history
  • Loading branch information
programmeroftheeve authored Jul 21, 2019
1 parent b222781 commit b2631dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lens.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ end
Base.@propagate_inbounds function get(obj, l::IndexLens)
getindex(obj, l.indices...)
end

Base.@propagate_inbounds function set(obj::Tuple, l::IndexLens, val)
setindex(obj, val, l.indices...)
end


Base.@propagate_inbounds function set(obj, l::IndexLens, val)
setindex!(obj, val, l.indices...)
end
Expand Down

0 comments on commit b2631dd

Please sign in to comment.