Skip to content

Instantly share code, notes, and snippets.

@jsfeng
jsfeng / gist:4076602
Created November 15, 2012 04:19
Pouring.scala
package streams
class Pouring (capacity : Vector[Int]) {
//States
type State = Vector[Int]
val initialState = capacity map (x => 0)
//Moves
trait Move {