4 ms·
In a discussion on the usefulness/overuse of operators, I'm surprised nobody has mentioned J. Here's quicksort in J: (($:@(<#[), (=#[), $:@(>#[)) ({~ ?@#)) ^
by nitnelave 7y ago
In a discussion on the usefulness/overuse of operators, I'm surprised nobody has mentioned J. Here's quicksort in J:
(($:@(<#[), (=#[), $:@(>#[)) ({~ ?@#)) ^: (1<#)
Good luck understanding that!