Sha256: 2de7048f0ee71b3a53f0bee20894a2baece1245fcf37047f8969cdf4c6350212
Contents?: true
Size: 212 Bytes
Versions: 396
Compression:
Stored size: 212 Bytes
Contents
#lang racket (provide word-count) (define (word-count word) (for/fold ([result (hash)]) ([word (in-list (string-split word))]) (hash-set result word (add1 (hash-ref result word 0)))))
Version data entries
396 entries across 396 versions & 1 rubygems