Skip to content

Instantly share code, notes, and snippets.

View tmoerman's full-sized avatar
🦀
keep calm and crabulon

Thomas Moerman tmoerman

🦀
keep calm and crabulon
  • Aspect Analytics, Polymath BV
  • Belgium
View GitHub Profile
package be.webcomrades.spike.partition
object Algo {
def partition(list: List[Int], acceptedSizes: Set[Int]) : List[List[Int]] = {
def internal(list: List[Int], result: List[List[Int]]) : List[List[Int]] = list match {
case Nil => result
case i :: rest =>
result match {