Commit Graph

27 Commits

Author SHA1 Message Date
Matthew Flatt
3bb120545f fix ~300 typos reported by Vladimir Nesterovich (a.k.a. Gwyth)
--- but Gwyth's amazingly helpful review of chapters 1-11
     pointed out a few problems that are more difficult to fix
     and are still pending
2011-01-04 09:53:31 -07:00
Matthew Flatt
99df8e1267 allow internal definitions in when', unless', cond, case', `match' 2010-10-12 06:41:49 -06:00
Sam Tobin-Hochstadt
dca895c129 Minor edits to `for/vector' docs. 2010-09-09 17:08:09 -04:00
Will M. Farr
81b1ed6e8b New updates to for/vector, for*/vector, for/flvector and for*/flvector.
Now use for/fold to thread the index through the iteration form, so
that all variants can take advantage of the optional #:length
argument.  Previously, only the for/vector and for/flvector used the

The behavior when #:length does not match the number of iterations has
changed: iteration stops when either the vector is full, or the
requested number of iterations has been achieved, whichever comes
first.  If #:length is larger than the number of iterations performed,
then the remaining slots in the vector are filled with the default
argument of (make-vector ...), which is currently 0.
2010-09-09 16:23:04 -04:00
Will M. Farr
3d016150a3 Updates to for/vector, for/flvector forms and documentation.
- Now the faster forms take a #:length keyword to designate the length
  of the vector to pre-allocate.

- The for/[fl]vector forms take multiple body expressions and set the
  vector component to the value of the last one.

- When given a #:length argument, the for/vector and for/flvector
  forms check that the iteration is not exceeding the given length,
  raising exn:fail if it does.

- Test cases for the multiple body expressions and the exception for
  excessive iterations have been added.

- Doc modifications to bring the docs in line with the new forms.

- Doc modifications to note that the #:length versions of the form
*may* all the computation to be performed more efficiently, and
stating that it "is an error" if the given length-expr does not
produce a valid length for a vector that matches the number of
iterations for the loop.

- Note that no test is made for a number of loop iterations that is
  smaller than the given vector length.  Also, the for*/[fl]vector
  forms do not optimize when given a #:length argument.  These are
  areas for future improvement.
2010-09-09 16:22:53 -04:00
Will M. Farr
82096abb1b Added interation forms for/vector, for*/vector, for/flvector, and for*/flvector and for-clause in-flvector. 2010-08-19 18:45:13 -04:00
Matthew Flatt
1873a6f14d fix typo 2010-05-16 07:30:43 -06:00
Matthew Flatt
0fe701a837 add for/hasheqv for completeness 2010-04-23 08:19:21 -06:00
Matthew Flatt
f1a3eaaf6d more updates to 'do' docs (continuing from PR 10508)
svn: r16246
2009-10-05 18:01:17 +00:00
Eli Barzilay
a71b7ab998 typo (PR10508)
svn: r16245
2009-10-05 17:36:29 +00:00
Eli Barzilay
2425917a33 typo (PR10362 and PR10363)
svn: r15604
2009-07-28 17:05:47 +00:00
Eli Barzilay
dda7b1c6d7 typo (PR10186)
svn: r14457
2009-04-08 05:52:12 +00:00
Matthew Flatt
851c58ea50 add #:contracts optional sub-form to defform
svn: r13012
2009-01-05 14:00:07 +00:00
Matthew Flatt
1ca888a934 dic docs for 'do' (PR 9640)
svn: r10970
2008-07-29 19:23:38 +00:00
Matthew Flatt
a0f65ba33e dictionaries
svn: r9383
2008-04-21 17:26:35 +00:00
Matthew Flatt
021d4d7527 new hash function names and ops (3.99.0.23)
svn: r9209
2008-04-08 21:42:38 +00:00
Matthew Flatt
f93e2f2de7 doc corrections from Doug Orleans
svn: r9004
2008-03-17 15:02:10 +00:00
Eli Barzilay
264af9a6d0 improved scribble syntax use
svn: r8720
2008-02-19 12:22:45 +00:00
John Clements
8caa50c20a includes -> includes
svn: r8682
2008-02-16 06:48:37 +00:00
Eli Barzilay
e824a51c59 typos
svn: r8239
2008-01-07 02:13:08 +00:00
Matthew Flatt
415cd0bf15 lazy, force, delay in scheme/promise and scheme; clean up mzscheme some, and clean up the docs some
svn: r8053
2007-12-18 21:37:23 +00:00
Matthew Flatt
8e68038c83 simple bibliography support in Scribble
svn: r7929
2007-12-09 17:40:40 +00:00
Matthew Flatt
39cedb62ed v3.99.0.2
svn: r7706
2007-11-13 12:40:00 +00:00
Matthew Flatt
e4cbc4e6a9 371.2
svn: r7263
2007-09-02 17:39:32 +00:00
Eli Barzilay
2974f38f31 removed spaces at eolns to make new-reader-diffs easier to follow
svn: r6763
2007-06-29 05:58:56 +00:00
Matthew Flatt
7de23b6373 change scribble to use new-lambda and new-struct, and correlate definitions and uses via lexical binding
svn: r6714
2007-06-22 05:59:42 +00:00
Matthew Flatt
32e9101594 guide and reference work; change opt-lambda to use lambda/kw and hack in keyword support for documentation purposes, along with define-opt
svn: r6572
2007-06-11 07:19:42 +00:00