Switch to split-string

I have an idea to limit the number of libraries that I use, but I
don't know if that is really going to happen.
This commit is contained in:
Howard Abrams 2022-02-05 21:33:02 -08:00
parent bb62828fb1
commit 5f68af3913

View file

@ -195,7 +195,7 @@ Calls `rpgdm-tables-choose' a number of ITERATIONS (defaults to 500)."
(let ((accumulator (make-hash-table :test 'equal)))
(dotimes (i iterations accumulator)
(let* ((item (rpgdm-tables-choose table-name))
(item-name (first (s-split " :: " item))))
(item-name (first (split-string item " :: "))))
(incf (gethash item-name accumulator 0))))
accumulator))