Install any skill in seconds. Free to start, no credit card required.
Get Started Free →lingxling/scala
Language-specific super-code guidelines for scala.
Passed 16 of 22 test cases with the skill, and 15 of 22 without it.
and 1 more in the full report
3 fixed13 passed either way4 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a Scala snippet that filters a list of employees by `departmentId == 42` and then extracts the first matching employee, handling potential emptiness.
| Checked | Without skill | With skill |
|---|---|---|
| Uses the `.find` method to locate the target element. | Passed | Passed |
| Avoids chaining a filter followed by a head access. | Missed | Passed |
The instructions your model reads when the skill loads.
// ❌ Imperative accumulation
val result = new ArrayBuffer[String]()
for (item <- items) {
if (item.isActive) result += item.name.toUpperCase
}
// ✅
val result = items.filter(_.isActive).map(_.name.toUpperCase)
// ❌ Manual grouping
val grouped = mutable.Map[String, List[Item]]()
for (item <- items) {
grouped(item.category) = grouped.getOrElse(item.category, Nil) :+ item
}
// ✅
val grouped = items.groupBy(_.category)
test cases passed, vs 15 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.