help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any faster way to find frequency of words?


From: Emanuel Berg
Subject: Re: Any faster way to find frequency of words?
Date: Sun, 09 May 2021 17:05:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> While hash tables are probably best for very large texts,
> alists are nice because you can use place-setting with
> a default, simplifying the above to:
>
> (cl-incf (alist-get word frequency-alist 0 nil #'equal))

Here is one solution already:

  https://emacs.stackexchange.com/a/13518

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]