Skip to content

index

index returns the position of a value inside a list.

Notes

  • Use it when you need the first matching position.
  • It is the list counterpart to lookup for maps.
  • It raises an error if the value is not present.