annotate arrows/@unfolder/unfolder.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents 672052bd81f8
children ae596261e75f
rev   line source
samer@0 1 % unfolder - unfolding arrow
samer@0 2 %
samer@0 3 % unfolder ::
samer@0 4 % (S -> B, S) ~'function to state to output and next state',
samer@0 5 % S ~'initial state'
samer@0 6 % -> arrow({},{B},S) ~'arrow from A to B with state of type S'.
samer@0 7
samer@0 8 function o=unfolder(fn,s0)
samer@0 9 s.fn=fn; s.s0=s0;
samer@0 10 o=class(s,'unfolder',arrow(0,1));
samer@0 11 end
samer@0 12