[racket-users] Given any list, group n number of sublists into a single list

2017-05-17 Thread Don Green
Racket code that could perform this list manipulation? (every-n-lists-into-list '()) (every-n-lists-into-list 1 '((1) (2))) ;=> '(((1) (2))) (every-n-lists-into-list 2 '((1) (2) (3) (4))) ;=> '(((1) (2)) ((3) (4))) (every-n-lists-into-list 3 '((1) (2) (3) (4)) (5) (6))) ;=> '(((1) (2) (3)) ((4)

[racket-users] How do you set the expander of a module to a module in the same file as the module whose expander you want to set

2017-05-17 Thread Vityou
If I have a module called reader, and I want to set its expander with syntax/module-reader to a module in the same file as reader, how would I do so? I have tried submod, but apparently you can only use it in a require/provide statement. -- You received this message because you are

Re: [racket-users] using a created language in the repl

2017-05-17 Thread Vityou
I did reprovide all of the #%... forms from racket, and the repl works with base.rkt, it's when I have a reader that the repl doesn't work. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving

[racket-users] ANN: syntax-parse-example 0.0

2017-05-17 Thread Ben Greenman
The syntax-parse-example package is a showcase of useful macros written using syntax-parse. https://pkgs.racket-lang.org/package/syntax-parse-example At the moment, the showcase is nearly empty ... but it's easy to contribute! 0. Design a beautiful macro, give it a name e.g. BOB 1. Run `raco pkg

Re: [racket-users] Given any list, group n number of sublists into a single list

2017-05-17 Thread George Neuner
Doing people's homework are we? On 5/17/2017 8:08 PM, Matthew Butterick wrote: `slice-at` http://docs.racket-lang.org/sugar/index.html?q=slice-at#%28def._%28%28lib._sugar%2Flist..rkt%29._slice-at%29%29

[racket-users] using a created language in the repl

2017-05-17 Thread Vityou
I made a little lambda-calculus language and it works for everything, except when I try to use it in the repl: racket -I lambda-calculus. It acts like it worked, but when I try to type an expression it says that all the variables like #%top-interaction don't exist. I made a pure language and

Re: [racket-users] Given any list, group n number of sublists into a single list

2017-05-17 Thread Matthew Butterick
`slice-at` http://docs.racket-lang.org/sugar/index.html?q=slice-at#%28def._%28%28lib._sugar%2Flist..rkt%29._slice-at%29%29 > On May 17, 2017, at 3:56 PM, Don Green

Re: [racket-users] using a created language in the repl

2017-05-17 Thread Alex Knauth
> On May 17, 2017, at 8:30 PM, Vityou wrote: > > I made a little lambda-calculus language and it works for everything, except > when I try to use it in the repl: racket -I lambda-calculus. It acts like it > worked, but when I try to type an expression it says that all the

[racket-users] Re: Type Racket command-line #:ps causing type error

2017-05-17 Thread lu
On Tuesday, May 16, 2017 at 12:47:37 AM UTC-7, kay wrote: > Hi I feel this might be a bug, can anyone confirm or suggest a fix? > > Here's a minimal usage of `command-line` form: > > ``` > #lang typed/racket > > (define *message* : (Parameterof (Listof String)) (make-parameter '())) > (define