Skip to content

IndexOf method for lists

Exercise for Assignment 1

IndexOf method for lists: given an item, return it's index (or maybe even indices for a follow-up. Preferably with yield).

Creator: @kevinchong Reviewer: @yvandenakker