Re: [racket-users] Re: Racket in command line, puts out wrong number

2017-11-09 Thread Alex Harsanyi
Hi Karim, You forgot to add the racket users list to your message, so your reply is sent to the mailing list. I fixed that. On Fri, Nov 10, 2017 at 12:17 AM, Karim Djemai wrote: > Hey Alex, > thank you for your quick response! > Is there any way for me to get the

Re: [racket-users] numerical partitions

2017-11-09 Thread Iain Gray
many thanks to all Iain > On 9 Nov 2017, at 17:50, Jos Koot wrote: > > I have put my code at: https://github.com/joskoot/partitions > Best wishes, Jos > > -Original Message- > From: Iain Gray [mailto:iaing...@ednet.co.uk] > Sent: jueves, 09 de noviembre de 2017

RE: [racket-users] numerical partitions

2017-11-09 Thread Jos Koot
I have put my code at: https://github.com/joskoot/partitions Best wishes, Jos -Original Message- From: Iain Gray [mailto:iaing...@ednet.co.uk] Sent: jueves, 09 de noviembre de 2017 17:30 To: Jos Koot Cc: Racket Users Subject: Re: [racket-users] numerical partitions my use will be a

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-09 Thread Matthew Butterick
I see your point. But this technique forfeits any broader compatibility with desktop-oriented tools (e.g., file launchers and whatnot) I did try making an Automator application containing a shell script that simply launches DrRacket, and also tried `bash -c ···` (to try to force it to launch

Re: [racket-users] numerical partitions

2017-11-09 Thread Iain Gray
my use will be a rhythmic pattern generator macro within the Common Music package. Sorry I lost the original implementation when my computer crashed last year, Iain > On 9 Nov 2017, at 13:28, Jos Koot wrote: > > How did you implement procedure part many years ago? > Things

RE: [racket-users] numerical partitions

2017-11-09 Thread Jos Koot
How did you implement procedure part many years ago? Things may depend on what you want to do with the partitions. Do you want the whole list at once, or would a stream or generator be more appropriate? If you want I can send you a stream-version, but it is in a bad style. It has docs made with

[racket-users] numerical partitions

2017-11-09 Thread Iain Gray
Many years ago (r5rs days) I asked for help in partitioning numbers i.e. (part 4) returns ((4) (3 1) (2 2) (2 1 1) (1 1 1 1)) where the order of solutions is not important. Is it more efficient to implement using Racket’s iteration macros? Any help would be appreciated. Iain -- You received

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-09 Thread Konrad Hinsen
On 08/11/2017 17:48, 'John Clements' via Racket Users wrote: IIRC, Mac has an apologetic moue towards unix-y things here: I believe there’s a special place in your home directory … or maybe it’s in ~/Library/Preferences, which would … okay, let me search. Okay, here you go: