The function you are looking for is add1
Such a list is available in the Reference index, but it's a bit unwieldy:
http://docs.racket-lang.org/reference/doc-index.html
I will shortly be posting a "Racket Cheat Sheet" that I suspect will
be what you want. Can you give me feedback on it once I pos
Oh, and it shouldn't affect the runtime performance at all. Just the start-up.
On Sat, Oct 3, 2015 at 10:22 AM, Jay McCarthy wrote:
> #lang racket is about 5x slower on my machine to start:
>
> % cat full.rkt
> #lang racket
> 42
> % cat base.rkt
> #lang racket/base
> 42
> % time racket full.rkt
>
#lang racket is about 5x slower on my machine to start:
% cat full.rkt
#lang racket
42
% cat base.rkt
#lang racket/base
42
% time racket full.rkt
42
racket full.rkt 0.23s user 0.07s system 94% cpu 0.316 total
% time racket base.rkt
42
racket base.rkt 0.04s user 0.02s system 95% cpu 0.062 total
%
On Saturday, October 3, 2015 at 1:41:57 PM UTC+2, Neil Van Dyke wrote:
> I always use `#lang racket/base`, since I'm almost always writing
> reusable modules, and I'd like for a hypothetical someone reusing the
> module in the future to not have to pull in all the `#lang racket`
> dependencies.
To add to what Jay said...
If you're referring to the "language vs. standard library" distinction:
Racket documents the language(s) and (most of the) library together.
The two most important manuals for this are:
* Guide: http://docs.racket-lang.org/guide/index.html
* Reference: http://docs.
What are you calling the "base library"?
If you mean racket/base, that's the Reference.
In general you can type and language or module name into the Search bar and
the top hit will be its docs.
Jay
On Saturday, October 3, 2015, Delon Newman wrote:
> This may be a silly question but, I can't s
This may be a silly question but, I can't seem to find a reference for Racket's
base library. Is that because there is none? In general the documentation's
be really great, so I'm a little surprised by this. Am I missing something?
Thanks,
Delon
--
You received this message because you are
7 matches
Mail list logo