these two methods look too different!


i5 : code  (symbol _, Ring, IndexedVariable)

o5 = -- code for method: Ring _ IndexedVariable
     -- variables.m2:23
     Ring _ IndexedVariable := (x,s) -> x.indexSymbols#s

i6 : code  (symbol _, IndexedVariable, Ring)

o6 = -- code for method: IndexedVariable _ Ring
     -- ofcm.m2:143-146
     IndexedVariable _ Ring := RingElement => (x,M) -> (
          if M.?indexSymbols and M.indexSymbols#?x then M.indexSymbols#x
          else error "indexed variable not found in ring"
          )
