Char

is the single character data type.

<

external

(Fn [Char, Char] Bool)

=

external

(Fn [Char, Char] Bool)

>

external

(Fn [Char, Char] Bool)

alpha?

defn

(Fn [Char] Bool)

                        (alpha? c)
                    

tests whether a character is alphabetical.

alphanum?

defn

(Fn [Char] Bool)

                        (alphanum? c)
                    

tests whether a character is alphanumerical.

blit

defn

(Fn [Char] Char)

                        (blit x)
                    

copy

external

(Fn [(Ref Char a)] Char)

format

external

(Fn [(Ref String a), Char] String)

from-byte

external

(Fn [Byte] Char)

from-int

external

(Fn [Int] Char)

hash

defn

(Fn [(Ref Char a)] Int)

                        (hash k)
                    

lower-case?

defn

(Fn [Char] Bool)

                        (lower-case? c)
                    

tests whether a character is lower case.

meaning

defn

(Fn [(Ref Char a)] Int)

                        (meaning char-ref)
                    

converts a numerical char into the appropriate number (e.g. from \1 to 1).

num?

defn

(Fn [Char] Bool)

                        (num? c)
                    

tests whether a character is numerical.

prn

external

(Fn [Char] String)

random

defn

(Fn [] Char)

                        (random)
                    

random-between

defn

(Fn [Char, Char] Char)

                        (random-between a b)
                    

str

external

(Fn [Char] String)

to-byte

external

(Fn [Char] Byte)

to-int

external

(Fn [Char] Int)

upper-case?

defn

(Fn [Char] Bool)

                        (upper-case? c)
                    

tests whether a character is upper case.

zero

defn

(Fn [] Char)

                        (zero)