Product Site

5.3.11.15. index

Returns the index of the specified item within the list. If the target item appears at more than one index, the first located index will be returned. Returns .nil if the list does not contain the specified item. Item equality is determined by using the == method of item.