view 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
line wrap: on
line source
function y=singleton(x)
% singleton - Make sequence with exactly one element
%
% singleton :: A -> seq A.

y=data(size(x),'datafn',@(o)x,'nextfn',@(o)[],'charfn',@(o)'singleton');