annotate general/funutils/zip.m @ 12:fbc0540a9208

Moved some high-order functions from funutils to arrutils, updated docs and cleaned up funutils.
author samer
date Mon, 14 Jan 2013 22:21:11 +0000
parents e44f49929e56
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