Operations on words

Constructors

word - create a word

fput - create a copy with an extra character in front
lput - create a copy with an extra character at the end

Conversions

toword - convert to a word
parse - create a list from a word

Selectors

item, operator , - character at given index
first - the first character
last - the last character
butfirst, bf - copy except the first character
butlast, bl - copy except the last character
pick - random character

Queries

wordp, word? - is this a word?
numberp, number? - is this a number?

emptyp, empty? - is this an empty word?
contains?, containsp - word1 contains word2?
count - number of characters in a word

See also:

Table of Content