view 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
line wrap: on
line source
% catsep - Format nonempty list of string with comma separators
% catsep :: {[N]->string} -> string.
function s=catsep(sep,list)
	s=list{1}; for i=2:length(list), s=[s,sep,list{i}]; end
end