[Lookup] Added Lookup.index(value)->Int32 which possibly adds a value and then returns its index.
[Lookup] Added Lookup.index(value)->Int32 which possibly adds a value and then returns its index.

Functionally equivalent to:

  local index = lookup.locate( x )
  if (index.exists) return index.value
  lookup.add( x )
  return lookup.locate( x ).value

AbePralle/Rogue,Plasmaworks/Rogue,AbePralle/Rogue,Plasmaworks/Rogue,Plasmaworks/Rogue,Plasmaworks/Rogue