On 10/19/2011 01:31 PM, Sancho wrote:
I try the following piece of code:
(define (insertions e list)
(if (null? list)
(cons (cons e list) list)
(cons (cons e list)
(map (lambda (tail) (cons (car list) tail))
(insertions e (cdr list))
(insertio
I try the following piece of code:
(define (insertions e list)
(if (null? list)
(cons (cons e list) list)
(cons (cons e list)
(map (lambda (tail) (cons (car list) tail))
(insertions e (cdr list))
(insertions 1 (list 2 3))
and the output I get is:
web-server/template and Scribble produce strings, that's why you
create a response by plopping in the string from include-template. The
Web Server has no idea what kind of string you making, so it imposes
no special XML rules.
The template-less version your servlet does exactly what you seem to wa
Hello! Thanks for making racket! It's the coolest.
The web server template documentation:
http://docs.racket-lang.org/web-server/templates.html has several
great examples of templates, but it doesn't mention whether
strings included in templates are entity-escaped XML or not.
More seriously, sear
On Sat, Oct 22, 2011 at 5:50 PM, Shriram Krishnamurthi
wrote:
> Thanks to you and Sam -- I had wondered if the run-time system wasn't
> partly driving this, and certainly chaperones on immutable data don't
> make as much sense.
They do make sense, and turn out to be important for things like
imm
Thanks to you and Sam -- I had wondered if the run-time system wasn't
partly driving this, and certainly chaperones on immutable data don't
make as much sense. But I don't see them on mutable lists either
_
For list-related administrative tasks
On Sat, Oct 22, 2011 at 4:10 PM, Shriram Krishnamurthi
wrote:
> I'm missing why there are impersonators and chaperones for various
> datatypes but not for lists. There's surely a good reason why, but I
> am having trouble reconstructing what it might be. Anyone?
First, chaperones aren't necess
At Sat, 22 Oct 2011 22:10:27 +0200,
Shriram Krishnamurthi wrote:
> I'm missing why there are impersonators and chaperones for various
> datatypes but not for lists. There's surely a good reason why, but I
> am having trouble reconstructing what it might be. Anyone?
I believe it's because lists a
On Sat, Oct 22, 2011 at 2:20 PM, Eric Tanter wrote:
> On Oct 21, 2011, at 1:55 PM, Sam Tobin-Hochstadt wrote:
>> On Fri, Oct 21, 2011 at 12:44 PM, Eric Tanter wrote:
>>> In that sense, union types are a particularly good example. They are
>>> necessary to support the kind of patterns found in pr
I'm missing why there are impersonators and chaperones for various
datatypes but not for lists. There's surely a good reason why, but I
am having trouble reconstructing what it might be. Anyone?
Shriram
_
For list-related administrative tasks:
On Oct 21, 2011, at 1:55 PM, Sam Tobin-Hochstadt wrote:
> On Fri, Oct 21, 2011 at 12:44 PM, Eric Tanter wrote:
>> In that sense, union types are a particularly good example. They are
>> necessary to support the kind of patterns found in previously-untyped code.
>> But if I'm writing typed code,
Thank you.
On 22-10-2011 04:04, Matthew Flatt wrote:
At Fri, 21 Oct 2011 23:31:56 +0100, José Lopes wrote:
I am trying to generate GoogleCode's Wiki pages using a Scribble
document as source.
Which functions provided by the Scribble module I can use to write a
program that reads a Scribble docu
12 matches
Mail list logo