File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 37
37
38
38
# A bit of backwards compatibility.
39
39
# TODO : Should we deprecate this?
40
- VarName {sym} (indexing:: Tuple ) where {sym} = VarName {sym} (tuple2indexlens (indexing))
40
+ VarName {sym} (indexing:: Tuple ) where {sym} = VarName {sym} (tupleindex2lens (indexing))
41
41
42
42
"""
43
43
VarName(vn::VarName, indexing::Lens)
59
59
VarName (vn:: VarName , indexing:: Lens = IdentityLens ()) = VarName {getsym(vn)} (indexing)
60
60
61
61
function VarName (vn:: VarName , indexing:: Tuple )
62
- return VarName {getsym(vn)} (tuple2indexlens (indexing))
62
+ return VarName {getsym(vn)} (tupleindex2lens (indexing))
63
63
end
64
64
65
- tuple2indexlens (indexing:: Tuple{} ) = IdentityLens ()
66
- tuple2indexlens (indexing:: Tuple{<:Tuple} ) = IndexLens (first (indexing))
67
- tuple2indexlens (indexing:: Tuple ) = IndexLens (first (indexing)) ∘ tuple2indexlens (indexing[2 : end ])
65
+ tupleindex2lens (indexing:: Tuple{} ) = IdentityLens ()
66
+ tupleindex2lens (indexing:: Tuple{<:Tuple} ) = IndexLens (first (indexing))
67
+ tupleindex2lens (indexing:: Tuple ) = IndexLens (first (indexing)) ∘ tupleindex2lens (indexing[2 : end ])
68
68
69
69
"""
70
70
getsym(vn::VarName)
You can’t perform that action at this time.
0 commit comments