HF RL Explorer

Implement a Python generator function called classify unique that takes an iterable and an optional key…

Implement a Python generator function called classify unique that takes an iterable and an optional key…: a task in repo2rlenv-r2e (Harbor dataset). Requirements: - If key is None , compare elements directly; otherwise apply key(element) before all comparisons. - The original element (not the…

The task

Requirements: - If `key` is `None`, compare elements directly; otherwise apply `key(element)` before all comparisons. - The original element (not the key-transformed value) must always be the first item in each yielded tuple. - The first element always yields `(element, True, True)`. - Handle unhashable elements…

Part of FineEnvs/repo2rlenv-r2e.