Type alias Word

Word: Char[]

A word is finite sequence of Chars.

This one of the core concepts of refa. Instead of operating on JavaScript strings, all functions operate on Chars and char arrays (= words). This means that refa is agnostic to text encodings, the string representation of JavaScript, and even text itself.

This type serves as a way to document words. It should not be used interchangeably with Char[] or number[].