(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
<?php | |
// implementation | |
function array_partition($arr, $callable) { | |
$r = array(array(), array()); | |
foreach ($arr as $e) { | |
$r[$callable($e) ? 0 : 1][] = $e; | |
} | |
return $r; |