letter

package
v0.0.0-...-bc789a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FrequencySync

func FrequencySync(s string, sMap *sync.Map)

FrequencySync counts the frequency of each rune in a given text and updates a sync map

Types

type FreqMap

type FreqMap map[rune]int

FreqMap records the frequency of each rune in a given text.

func ConcurrentFrequency

func ConcurrentFrequency(list []string) FreqMap

ConcurrentFrequency function counts the frequency of each rune in a given text list and returns a FreqMap

func Frequency

func Frequency(s string) FreqMap

Frequency counts the frequency of each rune in a given text and returns this data as a FreqMap.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL