start new:
tmux
start new with session name:
tmux new -s myname
function stupid_tricks | |
% I made some functional tools for MATLAB. | |
assert(reduce_(@(x, y) x + y, [1, 2, 3, 4]) == 10) | |
% They got a little out of hand. | |
join = @(sep, args) ... | |
if_(ischar(sep), @() ... % Input check | |
reduce_(@(x, y) [x sep y], ... % Reduce to string | |
map_(@num2str, args))); % Convert args to string. |