view 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
line wrap: on
line source
% zip - Polymorphic zip using zipwith(@tuple,...)
%
% zip :: seq(A1), seq(A2), ... -> seq(cell {A1,A2,..}).
% zip :: cells(A1), cells(A2), ... -> cells(cell {A1,A2,..}).
function y=zip(varargin)
	y=zipwith(@tuple,varargin{:});
end