[racket-users] how to understand this code? permutations use recursive 4 times

2016-10-08 Thread 231c
https://hackpad.com/I-dont-know-how-to-understand-this-works-and-correct-T9yCt51UGSh -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@goo

[racket-users] is there a way to syntax-local-lift- something into a define-syntax?

2016-10-08 Thread Stephen Chang
I'm trying to write a provide transformer that wraps a provided identifier and then provides that instead. For example, #lang racket (require (for-syntax syntax/parse racket/provide-transform)) (define-syntax wrapped-out (make-provide-pre-transformer (lambda (stx modes) (syntax-parse st

[racket-users] holiday season project idea: crobots-like game

2016-10-08 Thread Neil Van Dyke
The November through January school break(s), in the US and elsewhere, are a good time for students to get in some significant self-directed programming projects. One fun idea, which might be especially interesting to do in Racket in particular, is to implement a game inspired by the late-'80s

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
2016-10-08 20:00 GMT+02:00 Ryan Culpepper : > Does one of the `string-normalize-*` functions do what you want? > No. I am basically implementing the part of the reader that lexes string literals. I want to allow full Racket syntax in the string literals in my infix package. One solution is to use

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
Thanks, I can work with that. /Jens Axel 2016-10-08 19:44 GMT+02:00 Jon Zeppieri : > > > On Sat, Oct 8, 2016 at 1:06 PM, Jens Axel Søgaard > wrote: > >> Hi All, >> >> The following interaction shows how the reader can be used to construct a >> surrogate character: >> >> > (string-ref "\ud8

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Ryan Culpepper
Does one of the `string-normalize-*` functions do what you want? Ryan On 10/08/2016 01:06 PM, Jens Axel Søgaard wrote: Hi All, The following interaction shows how the reader can be used to construct a surrogate character: > (string-ref "\ud800\udc00" 0) #\𐀀 Given the two hexadecim

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jon Zeppieri
On Sat, Oct 8, 2016 at 1:06 PM, Jens Axel Søgaard wrote: > Hi All, > > The following interaction shows how the reader can be used to construct a > surrogate character: > > > (string-ref "\ud800\udc00" 0) > #\𐀀 > > Given the two hexadecimal numbers d800 and dc00 how do I > construct the su

[racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
Hi All, The following interaction shows how the reader can be used to construct a surrogate character: > (string-ref "\ud800\udc00" 0) #\𐀀 Given the two hexadecimal numbers d800 and dc00 how do I construct the surrogate character directly? /Jens Axel -- You received this message becau