add some datatype deftechs
svn: r12026
This commit is contained in:
parent
2ef287f107
commit
d3397103a8
|
@ -3,9 +3,10 @@
|
||||||
|
|
||||||
@title[#:tag "booleans"]{Booleans and Equality}
|
@title[#:tag "booleans"]{Booleans and Equality}
|
||||||
|
|
||||||
True and false are represented by the values @scheme[#t] and
|
True and false @deftech{booleans} are represented by the values
|
||||||
@scheme[#f], respectively, though operations that depend a boolean
|
@scheme[#t] and @scheme[#f], respectively, though operations that
|
||||||
value typically treat anything other than @scheme[#f] as true.
|
depend a boolean value typically treat anything other than @scheme[#f]
|
||||||
|
as true.
|
||||||
|
|
||||||
See also: @scheme[and], @scheme[or], @scheme[andmap], @scheme[ormap].
|
See also: @scheme[and], @scheme[or], @scheme[andmap], @scheme[ormap].
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
@guideintro["characters"]{characters}
|
@guideintro["characters"]{characters}
|
||||||
|
|
||||||
MzScheme characters range over Unicode scalar values, which includes
|
@deftech{Characters} range over Unicode scalar values, which includes
|
||||||
characters whose values range from @schemevalfont{#x0} to
|
characters whose values range from @schemevalfont{#x0} to
|
||||||
@schemevalfont{#x10FFFF}, but not including @schemevalfont{#xD800} to
|
@schemevalfont{#x10FFFF}, but not including @schemevalfont{#xD800} to
|
||||||
@schemevalfont{#xDFFF}.
|
@schemevalfont{#xDFFF}.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
@guideintro["numbers"]{numbers}
|
@guideintro["numbers"]{numbers}
|
||||||
|
|
||||||
All numbers are @deftech{complex numbers}. Some of them are
|
All @deftech{numbers} are @deftech{complex numbers}. Some of them are
|
||||||
@deftech{real numbers}, and all of the real numbers that can be
|
@deftech{real numbers}, and all of the real numbers that can be
|
||||||
represented are also @deftech{rational numbers}, except for
|
represented are also @deftech{rational numbers}, except for
|
||||||
@as-index{@scheme[+inf.0]} (positive @as-index{infinity}),
|
@as-index{@scheme[+inf.0]} (positive @as-index{infinity}),
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
@local-table-of-contents[]
|
@local-table-of-contents[]
|
||||||
|
|
||||||
Regular expressions are specified as strings or byte strings, using
|
@deftech{Regular expressions} are specified as strings or byte
|
||||||
the same pattern language as the Unix utility @exec{egrep} or Perl. A
|
strings, using the same pattern language as the Unix utility
|
||||||
string-specified pattern produces a character regexp matcher, and a
|
@exec{egrep} or Perl. A string-specified pattern produces a character
|
||||||
byte-string pattern produces a byte regexp matcher. If a character
|
regexp matcher, and a byte-string pattern produces a byte regexp
|
||||||
regexp is used with a byte string or input port, it matches UTF-8
|
matcher. If a character regexp is used with a byte string or input
|
||||||
encodings (see @secref["encodings"]) of matching character streams;
|
port, it matches UTF-8 encodings (see @secref["encodings"]) of
|
||||||
if a byte regexp is used with a character string, it matches bytes in
|
matching character streams; if a byte regexp is used with a character
|
||||||
the UTF-8 encoding of the string.
|
string, it matches bytes in the UTF-8 encoding of the string.
|
||||||
|
|
||||||
Regular expressions can be compiled into a @defterm{regexp value} for
|
Regular expressions can be compiled into a @defterm{regexp value} for
|
||||||
repeated matches. The @scheme[regexp] and @scheme[byte-regexp]
|
repeated matches. The @scheme[regexp] and @scheme[byte-regexp]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user