agentsclimarketplace

Python scala functional

Skill cxcscmu/SkillLearnBench/skills/b4-skill-creator-gemini-3-flash-preview/python-scala-translation/python-scala-functional

Guidelines for translating Python functional patterns and simulations to idiomatic Scala.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill python-scala-functional

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.7 KB, 155 tokens by cl100k_base, as published. Nobody here has run it

Python to Scala Functional Idioms

Functions and Callables

  • Python Callable[[T], R] -> Scala T => R.
  • Python Optional[T] -> Scala Option[T].

Overloading and Dispatch

  • Python @overload -> Scala method overloading.
  • Python isinstance dispatch -> Scala pattern matching.

Functors and Monads

  • Python simulated Functor/Monad -> Scala's built-in map/flatMap patterns.
  • Proper Scala implementation should follow the def map[B](f: A => B): F[B] signature.

Builder Pattern

  • Python fluent builder -> Scala class with methods returning this.type or new instances for immutability.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.