annotate sequences/singleton.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
rev   line source
samer@0 1 function y=singleton(x)
samer@0 2 % singleton - Make sequence with exactly one element
samer@0 3 %
samer@0 4 % singleton :: A -> seq A.
samer@0 5
samer@0 6 y=data(size(x),'datafn',@(o)x,'nextfn',@(o)[],'charfn',@(o)'singleton');