Danny Yoo
47a33f2edf
Added another example for for/fold/derived: for/max.
...
Updated example for for/digits to avoid confusion: it's not clear
otherwise that the intentional syntax error wasn't just a casual
mistake.
Added an example for sequence-add-between.
2012-10-28 16:36:00 -06:00
Asumu Takikawa
862fd346c7
Doc typo
2012-10-19 15:06:46 -04:00
Eli Barzilay
47a68197b6
Tidy things up.
2012-10-17 15:05:42 -04:00
Danny Yoo
18753621e1
adding examples for sequences
2012-10-17 15:05:42 -04:00
Matthew Flatt
5dcebb86ac
change `stream-append' to use its last argument as the result tail
...
Closes PR 13130
2012-09-20 17:49:50 -06:00
Matthew Flatt
c28d3190b2
doc fix for `in-producer'
2012-09-14 13:03:06 -06:00
Matthew Flatt
adb5c01ac4
racket/generator: add optional #:arity' clause to
in-generator'
...
Allows the use of `in-generator' to produce multiple values in a
position other than immediately within `for' (where the arity
can be inferred).
Closes PR 11662
2012-09-14 13:02:55 -06:00
Matthew Flatt
ac5965a1dc
racket/set: add set-first' and
set-rest'
2012-09-12 17:57:03 -06:00
Vincent St-Amour
800a328fe6
Fix documentation for packages and mutable lists.
...
As suggested by Matthew.
2012-07-31 17:12:30 -04:00
Vincent St-Amour
52439d528b
Move mutable list functions to the compatibility collect.
...
Mutable pair functions from racket/base are not moved.
2012-07-27 16:49:05 -04:00
Eli Barzilay
c2fe7c4e35
Quick typo fix.
2012-07-22 10:11:37 -04:00
Asumu Takikawa
81d13ee7ed
racket/generic: doc improvements
2012-05-26 13:53:43 -04:00
Asumu Takikawa
a22633e348
Rename generics => generic.
2012-05-24 16:51:14 -04:00
Asumu Takikawa
8ac82eaf58
Use simplified interface for define-generics
...
Also removed `generics`
2012-05-24 16:51:09 -04:00
Vincent St-Amour
3bfaa2b00b
New naming convention for generics names.
2012-05-24 16:51:07 -04:00
Asumu Takikawa
f866e34b26
Expand documentation on sequence/stream extension
2012-05-24 16:51:06 -04:00
Asumu Takikawa
3a93df5566
Use racket/generics for extensions to racket/stream
2012-05-24 16:50:44 -04:00
Matthew Flatt
dfca7d89d9
documentation clarification
2012-03-29 06:46:58 -06:00
Matthew Flatt
5551e287da
fix typo
2012-03-19 14:34:33 -06:00
Matthew Flatt
7e666b4b45
add stream' to
racket/stream'
...
based on a pull request from Dan King
2011-12-08 09:25:34 -07:00
Matthew Flatt
cb341e1f48
make in-sequences' and
in-cycle' accept 0 sequences
...
Plus doc clarifications.
2011-11-28 13:51:24 -07:00
Matthew Flatt
03991c778c
doc contract fix
...
Closes PR 12163
2011-09-03 13:31:27 -06:00
Vincent St-Amour
d05f138ed2
Add precision to sequence-fold's doc.
2011-08-16 12:09:39 -04:00
Eli Barzilay
d61eb53686
Lots of documentation formatting.
...
Started as fixing misindented definitions, then more indentations, then
a bunch of similar things (square brackets, huge spaces at end-of-lines,
etc).
2011-08-15 07:50:04 -04:00
Eli Barzilay
ac26fe7554
A ton of @scheme*' ->
@racket*' and related updates.
...
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00
Eli Barzilay
debd1f9f1e
Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
...
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Matthew Flatt
e0d26d88b6
support exact nonnegative integers as sequences
2011-04-18 14:55:02 -06:00
Matthew Flatt
5844b56a10
doc typos
2011-03-28 06:45:06 -06:00
Matthew Flatt
84d8bb3726
racket/sequence repairs
...
including addition of `sequence-generate*'
2011-03-27 10:02:11 -06:00
Matthew Flatt
e652546bf5
add streams to `racket'
...
- rename old `racket/stream' to `racket/sequence', and adjust
to avoid stateful iterations
- add a new `racket/stream' library with a `strean-cons' that is based
on SRFI 41
- adjust `for' and some sequence constructors like `in-range' to
work more directly with streams
2011-03-18 19:05:23 -06:00
Matthew Flatt
ad8e959a98
tweak performance of `for' with non-inlined sequences
2011-03-16 17:02:53 -06:00
Matthew Flatt
0efcf22ed4
racket/generator: clean-ups, including planned generalization
...
- syntax is now (generator formals body ...+)
- add `generator?'
- remove common run-time code from the `generator' macro expansion
- doc fixes
- start test suite
2011-03-15 20:14:01 -06:00
Eli Barzilay
a18197ff25
Add a warning about the current state of racket/stream.
2011-03-11 06:47:36 -05:00
Matthew Flatt
0b496d5275
a round of doc corrections from Gwyth
2011-03-10 06:34:33 -06:00
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
Noel Welsh
8040100eff
Merge branch 'master' of pltgit:plt into in-vector
2010-12-13 13:43:05 +00:00
Noel Welsh
cfa7b727f4
Fix some errors with in-vector and derived forms:
...
- Range checking was inconsistent between the sequence and macro forms
- The macro form could crash due to unsafe vector refs
Fixes involved refactoring the range checks so they are shared between both versions, and changing the contract slightly so start and stop are checked before the sequence runs. This allows unsafe vector refs and earlier error notifications at the cost making some valid programs (e.g. those using some condition to stop a comprehension hitting an invalid index) now be invalid. Only crazy people would rely on the old behaviour, so it isn't a problem in practice.
2010-12-13 13:38:35 +00:00
Jon Rafkind
a02d73e530
add examples for in-hash and friends
2010-12-07 11:54:12 -07:00
Matthew Flatt
51d613aab2
doc improvements
2010-10-22 20:15:38 -06:00
Eli Barzilay
9e302a7106
Rename sequence' library to
stream', move from racket/base' to
racket'.
2010-10-21 19:49:39 -04:00
Eli Barzilay
2f5265854a
Rename seqn-*' to
stream-*'.
...
Later this will grow, to include a few kinds of streams in a unified
way, and possibly change the sequence protocol to a point where these
functions are not causing such big runtime penalties.
2010-10-21 19:49:39 -04:00
Eli Barzilay
655b066a93
Reformat, minor tweaks, reorganize part on sequence operations into a
...
new section.
2010-10-21 19:49:39 -04:00
Eli Barzilay
2853020369
A bunch of typo fixes.
...
Fixes PR11131.
2010-08-26 12:11:00 -04:00
Jay McCarthy
58b9c7a6e4
Fixing seqn-count
2010-08-13 15:06:14 -06:00
Jay McCarthy
553648a5a6
Dropping _0
2010-08-12 19:51:05 -06:00
Jay McCarthy
fae0cb2c99
A few fixes to the documentation
2010-08-12 14:10:20 -06:00
Jay McCarthy
8c32de33c6
Adding sequence support for mlists and more sequence xrefs
2010-08-12 14:10:20 -06:00
Jay McCarthy
383465aa06
Removing reference to sequence/c
2010-08-12 14:10:20 -06:00
Jay McCarthy
2751ace762
Adding more sequence operators
2010-08-12 14:10:19 -06:00
Matthew Flatt
c3f5aed473
fix docs for in-directory to specific default argument value
...
Merge to v5.0
2010-05-24 10:03:36 -06:00