On Mon, May 30, 2011 at 10:07 AM, Yingjian Ma yingjian.ma1...@gmail.com wrote:
The lines are from
http://pre.racket-lang.org/docs/html/reference/booleans.html
section 3.1
The lines are:
(boolean? v) → boolean?
v : any/c
Question 1
The result (boolean? v) is a boolean. Why is it not
The results of functions are all given by contracts. So, this is saying that
the function named boolean? returns something that, when passed to
boolean?, returns #true.
This is a confusing example to start with, tho, if you had number?, you'd
see:
(number? v) - boolean?
v : any/c
which is
I think even one sentence in the docs about the implications of these
statements there would be a great idea. To someone who doesn't
already know Scheme, the distinction between one value and the
alternative is entirely unclear because they don't know what
alternatives there are to one
Do you still have commit acces to the repo?
Robby
On Monday, May 30, 2011, Shriram Krishnamurthi s...@cs.brown.edu wrote:
I think even one sentence in the docs about the implications of these
statements there would be a great idea. To someone who doesn't
already know Scheme, the distinction
4 matches
Mail list logo