Start with http://www.ccs.neu.edu/home/matthias/HtDP2e/
When you run out of material, switch over to HtDP 1e.
-- Matthias
On Feb 12, 2011, at 9:55 PM, prad wrote:
> Neil Van Dyke writes:
>
>> You might enjoy the HTDP textbook ("http://htdp.org/";), which teaches
>> using tests like these
Neil Van Dyke writes:
> You might enjoy the HTDP textbook ("http://htdp.org/";), which teaches
> using tests like these as part of problem-solving process.
we are going to get that book. we figure if people are decent enough to
offer it for free on the net, the least we can do is to buy it.
we
On Sat, Feb 12, 2011 at 2:35 PM, Gregory Woodhouse wrote:
> Is it possible to ensure that data written to a socket or file is encoded as
> UTF-16? I ask because Health Level 7 (HL7) 2.5.1 allows messages to use
> UTF-16 as opposed to US-ASCII, but it has to be a fixed width encoding.
Note that
prad wrote at 02/12/2011 08:54 PM:
my son helped me understand what it was doing after we looked check-expect up.
so this runs a function for you and checks to see that the result is really
what you say it is going to be!
that's pretty useful, so a second thx!
This use of "check-expect"
Neil Van Dyke writes:
> prad wrote at 02/12/2011 08:17 PM:
>> is there a function which will convert
>> "February 12, 2011"
>> to
>> "2011-02-12"
>
> Racket search turns up "string->date" and "date->string". You can use
> them to define your new procedure like this...
>
> BEGIN
>
> #lang ra
prad wrote at 02/12/2011 08:17 PM:
is there a function which will convert
"February 12, 2011"
to
"2011-02-12"
Racket search turns up "string->date" and "date->string". You can use
them to define your new procedure like this...
BEGIN
#lang racket/base
(require srfi/19)
(define (us-lo
is there a function which will convert
"February 12, 2011"
to
"2011-02-12"
or do we need to write it ourselves?
--
in friendship,
prad
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Thanks, everyone. This is just what I was looking for.
Sent from my iPad
On Feb 12, 2011, at 4:53 PM, Robby Findler wrote:
> Oh, yes, that looks right to me.
>
> Robby
>
> On Sat, Feb 12, 2011 at 2:54 PM, Neil Van Dyke wrote:
>> Won't "reencode-output-port" let you write Racket strings as U
Oh, yes, that looks right to me.
Robby
On Sat, Feb 12, 2011 at 2:54 PM, Neil Van Dyke wrote:
> Won't "reencode-output-port" let you write Racket strings as UTF-16
> transparently?
>
>
>> On Sat, Feb 12, 2011 at 2:35 PM, Gregory Woodhouse
>> wrote:
>>
>>>
>>> Is it possible to ensure that data w
Won't "reencode-output-port" let you write Racket strings as UTF-16
transparently?
On Sat, Feb 12, 2011 at 2:35 PM, Gregory Woodhouse wrote:
Is it possible to ensure that data written to a socket or file is encoded as
UTF-16? I ask because Health Level 7 (HL7) 2.5.1 allows messages to us
You can use string->utf16 from rnrs/bytevectors-6:
(require rnrs/bytevectors-6)
(string->utf16 "abc")
and them use "write-bytes".
Chongkai
On 2/12/2011 2:35 PM, Gregory Woodhouse wrote:
Is it possible to ensure that data written to a socket or file is encoded as
UTF-16? I ask because Healt
You can work at the bytes level when you communicate on the port and
use converters to turn the bytes into strings when you want to
actually do things like match regexps or examine characters or
similar.
Robby
On Sat, Feb 12, 2011 at 2:35 PM, Gregory Woodhouse wrote:
> Is it possible to ensure t
Is it possible to ensure that data written to a socket or file is encoded as
UTF-16? I ask because Health Level 7 (HL7) 2.5.1 allows messages to use UTF-16
as opposed to US-ASCII, but it has to be a fixed width encoding.
_
For list-related adminis
On Sat, Feb 12, 2011 at 07:37:43AM -0800, Gregory Woodhouse wrote:
> I remember using a Lisp as an undergraduate (Franz Lisp?) that used the right
> angle bracket as a kind of super right parenthesis that could close multiple
> right parentheses. It was really ugly.
The problem with that is that
I remember using a Lisp as an undergraduate (Franz Lisp?) that used the right
angle bracket as a kind of super right parenthesis that could close multiple
right parentheses. It was really ugly.
On Feb 12, 2011, at 4:43 AM, Todd O'Bryan wrote:
> And now I have unresolved tension...
Thank you. I feel better. :-)
On Sat, Feb 12, 2011 at 8:13 AM, Robby Findler
wrote:
> )
>
> On Sat, Feb 12, 2011 at 6:43 AM, Todd O'Bryan wrote:
>> And now I have unresolved tension...
>>
>> On Fri, Feb 11, 2011 at 1:20 AM, Paul Steckler wrote:
>>> In case you haven't seen it:
>>>
>>> http://x
)
On Sat, Feb 12, 2011 at 6:43 AM, Todd O'Bryan wrote:
> And now I have unresolved tension...
>
> On Fri, Feb 11, 2011 at 1:20 AM, Paul Steckler wrote:
>> In case you haven't seen it:
>>
>> http://xkcd.com/859/
>>
>> -- Paul
>> _
>> For list-rela
You can use the primitive require, which is #%require IIRC.
HTH,
N.
On Sat, Feb 12, 2011 at 1:34 AM, geb a wrote:
> How do I use regexp with r5rs? I had some difficulty using outside of racket.
>
> Sincerely,
> Dan
>
>
>
> _
> For list-related ad
And now I have unresolved tension...
On Fri, Feb 11, 2011 at 1:20 AM, Paul Steckler wrote:
> In case you haven't seen it:
>
> http://xkcd.com/859/
>
> -- Paul
> _
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/us
19 matches
Mail list logo