Mercurial > hg > ishara
view sequences/singleton.m @ 0:672052bd81f8
Initial partial import.
author | samer |
---|---|
date | Wed, 19 Dec 2012 22:38:28 +0000 |
parents | |
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');