11 lines
250 B
Python
11 lines
250 B
Python
# HumanEval/34
|
|
# Loki Mode Multi-Agent Solution
|
|
# Attempts: 1
|
|
# Passed: True
|
|
|
|
def unique(l: list):
|
|
"""Return sorted unique elements in a list
|
|
>>> unique([5, 3, 5, 2, 3, 3, 9, 0, 123])
|
|
[0, 2, 3, 5, 9, 123]
|
|
"""
|
|
return sorted(set(l)) |