Handbook
Glossary
sum-line-counts-by-extension ( paths -- assoc )
Vocabulary
codebase-analyzer
Inputs
paths
an
object
Outputs
assoc
an
object
Definition
USING:
assocs
sequences
sorting
tools.wc
;
IN:
codebase-analyzer
:
sum-line-counts-by-extension
( paths -- assoc )
[
binary-file?
]
reject
collect-by-file-extension
[
[
wc
]
map-sum
]
assoc-map
sort-values
;