annotate general/arrutils/catsep.m @ 29:61921dceded1

More documentation on type system.
author samer
date Sat, 19 Jan 2013 17:56:21 +0000
parents f0a3d7d7a0e3
children
rev   line source
samer@8 1 % catsep - Format nonempty list of string with comma separators
samer@8 2 % catsep :: {[N]->string} -> string.
samer@8 3 function s=catsep(sep,list)
samer@4 4 s=list{1}; for i=2:length(list), s=[s,sep,list{i}]; end
samer@4 5 end