annotate general/funutils/zip.m @ 54:9bcf5e133bf0

Added from old stats library.
author samer
date Mon, 23 Feb 2015 16:08:09 +0000
parents fbc0540a9208
children
rev   line source
samer@4 1 % zip - Polymorphic zip using zipwith(@tuple,...)
samer@12 2 %
samer@12 3 % zip :: seq(A1), seq(A2), ... -> seq(cell {A1,A2,..}).
samer@12 4 % zip :: cells(A1), cells(A2), ... -> cells(cell {A1,A2,..}).
samer@4 5 function y=zip(varargin)
samer@4 6 y=zipwith(@tuple,varargin{:});
samer@4 7 end