Solutions

class Solutions

The solutions of a goal, computed one at a time as they are asked for: with hasNext and next, or iterated in Kotlin

Functions

Link copied to clipboard
Link copied to clipboard
operator fun iterator(): Iterator<Solution>
Link copied to clipboard
fun next(): Solution
Link copied to clipboard
fun toArray(limit: Int = Int.MAX_VALUE): Array<Solution>

The solutions left, at most limit of them (an array in JavaScript)

Link copied to clipboard
fun toList(limit: Int = Int.MAX_VALUE): List<Solution>

The solutions left, at most limit of them