NervesMOTD.Word34567 (nerves_motd v0.1.17)

Copy Markdown View Source

Compact word lookup used by fwup

Words are stored in a tightly-packed string format where each row contains 5 words with lengths 3, 4, 5, 6, and 7 (25 letters per row).

Summary

Functions

Retrieve a word by index

Functions

word(index)

@spec word(byte()) :: String.t()

Retrieve a word by index

Examples

iex> NervesMOTD.Word34567.word(108)
"garlic"

iex> NervesMOTD.Word34567.word(194)
"raccoon"