HF RL Explorer

Task: Find All Occurrences of an Element in a List

Task: Find All Occurrences of an Element in a List: a task in Terminal-Lego-15k (Harbor dataset). In Python, the index() method only returns the first occurrence of an item in a list. Your task is to write a Python function that returns all indices where a specific element appears in a list.

Part of PrimeIntellect/Terminal-Lego-15k.