Vocabularymath.statisticsInputs and outputsWord descriptionIterates over a sequence, allowing elements of the sequence to be added to an existing
assoc. The
map-quot gets passed each element from the sequence. Its outputs are passed along with the assoc being constructed to the
insert-quot, which can modify the assoc in response.
Examples! Iterate over a sequence and add the counts to an existing assoc
USING: assocs prettyprint math.statistics kernel ;
H{ { 97 2 } { 98 1 } } clone "aaabc" [ ] [ inc-at ] sequence>assoc! .
H{ { 97 5 } { 98 2 } { 99 1 } }
Definition