Fix: Ensure all skills are tracked as files, not submodules
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# HumanEval/29
|
||||
# Loki Mode Multi-Agent Solution
|
||||
# Attempts: 1
|
||||
# Passed: True
|
||||
|
||||
from typing import List
|
||||
|
||||
|
||||
def filter_by_prefix(strings: List[str], prefix: str) -> List[str]:
|
||||
""" Filter an input list of strings only for ones that start with a given prefix.
|
||||
>>> filter_by_prefix([], 'a')
|
||||
[]
|
||||
>>> filter_by_prefix(['abc', 'bcd', 'cde', 'array'], 'a')
|
||||
['abc', 'array']
|
||||
"""
|
||||
return [s for s in strings if s.startswith(prefix)]
|
||||
Reference in New Issue
Block a user