Skip to content

Commit 8c1d193

Browse files
committed
renamed tuple2indexlens
1 parent 84badce commit 8c1d193

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/varname.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ end
3737

3838
# A bit of backwards compatibility.
3939
# 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))
4141

4242
"""
4343
VarName(vn::VarName, indexing::Lens)
@@ -59,12 +59,12 @@ x
5959
VarName(vn::VarName, indexing::Lens=IdentityLens()) = VarName{getsym(vn)}(indexing)
6060

6161
function VarName(vn::VarName, indexing::Tuple)
62-
return VarName{getsym(vn)}(tuple2indexlens(indexing))
62+
return VarName{getsym(vn)}(tupleindex2lens(indexing))
6363
end
6464

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])
6868

6969
"""
7070
getsym(vn::VarName)

0 commit comments

Comments
 (0)