jemnotesversion 2 / featuring this entry or see all/search

Jan 12
In matlab, deal can be used for multiple simultaneous assignment. For example, from matlab’s help,
% Same as a = x, b = y, c = z:
[a, b, c] = deal(x, y, z);