RosettaCodeData/Task/Function-frequency/Factor/function-frequency.factor

8 lines
307 B
Factor
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
USING: accessors kernel math.statistics prettyprint sequences
sequences.deep source-files vocabs words ;
"resource:core/sequences/sequences.factor" "sequences"
[ path>source-file top-level-form>> ]
[ vocab-words [ def>> ] [ ] map-as ] bi* compose [ word? ]
deep-filter sorted-histogram <reversed> 7 head .