This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| read L as Left, R as Right, C as Center | |
| moveN | |
| m1:Move[Succ[_0],L,C,R] | |
| m2:Move[_0,L,R,C] production side effect "Move from Left to Right" via move0 | |
| m3:Move[Succ[_0],C,R,L] | |
| produces Move[Succ[_1](_2),L,R,C] | |
| moveN | |
| m1:Move[_0,L,R,C] production side effect "Move from Left to Right" via move0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object PhantomTypes { | |
| trait State; trait Closed extends State; trait Open extends State | |
| class SingleCallOps[A <: State, B <: State] { | |
| def a(implicit a: A =:= Open) = SingleCallOps.as[Closed, B] | |
| def b(implicit b: B =:= Open) = SingleCallOps.as[A,Closed] | |
| } | |
| object SingleCallOps { |
NewerOlder