view sequences/repeat.m @ 2:7357e1dc2ad6

Simplified scheduler library with new schedule representation.
author samer
date Sat, 22 Dec 2012 16:17:51 +0000
parents 672052bd81f8
children 3f77126f7b5f
line wrap: on
line source
function Y=repeat(X)
% repeat - Make infinite sequence of the same given element
%
% repeat :: A -> seq A.

Y=data(size(X),'datafn',@(o)X,'nextfn',@id,'charfn',@(o)[tostring(X) '>> repeat']);