view arrows/obs_with.m @ 2:7357e1dc2ad6

Simplified scheduler library with new schedule representation.
author samer
date Sat, 22 Dec 2012 16:17:51 +0000
parents 672052bd81f8
children
line wrap: on
line source
% obs_with - arrow to observe a signal while passing it through
%
% obs_with ::
%    arrow({A},{},S) ~'arrow sink to observe values of type A',
% -> arrow({A},{A},pair(empty,S)).

function b=obs_with(a), b=dup*first(a); end