changeset 485 | bd6d999ab7b6 |
parent 483 | 6f508bcdaa30 |
child 487 | a697421eaa04 |
484:e61ffb28994d | 485:bd6d999ab7b6 |
---|---|
1 // DFAs in Scala based on partial functions |
1 // DFAs in Scala using partial functions |
2 import scala.util.Try |
2 import scala.util.Try |
3 |
3 |
4 // type abbreviation for partial functions |
4 // type abbreviation for partial functions |
5 type :=>[A, B] = PartialFunction[A, B] |
5 type :=>[A, B] = PartialFunction[A, B] |
6 |
6 |