progs/dfa.scala
changeset 485 21dec9df46ba
parent 483 faba5360372c
child 487 ffbc65112d48
equal deleted inserted replaced
484:8182eb3278e0 485:21dec9df46ba
     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