6 ms·
A few of my favorite longer phrases: expand a run-length encoded list: ,/#/' maximum depth of a nested list: #,/\ shape of a rectangular nested str
by RodgerTheGreat 9y ago
A few of my favorite longer phrases:
expand a run-length encoded list:
,/#/'
maximum depth of a nested list:
#,/\
shape of a rectangular nested structure:
-1_#:'*:\
count of each group:
#:'=:
which in k5 and newer leads nicely to a way to find the mode of a list. k5 made group produce a dictionary instead of a list of lists, and the grade operators are overloaded to sort dictionary keys by values, producing a list:
*>#:'=: