Re: [racket-users] numerical partitions
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 17:30 > To: Jos Koot > Cc: Racket Users > Subject: Re: [racket-users] numerical partitions > > 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 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 scribble. >> Jos >> >> -Original Message- >> From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] >> On Behalf Of Iain Gray >> Sent: jueves, 09 de noviembre de 2017 11:17 >> To: Racket Users >> Subject: [racket-users] numerical partitions >> >> 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 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...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: [racket-users] numerical partitions
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 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 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 scribble. > Jos > > -Original Message- > From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On > Behalf Of Iain Gray > Sent: jueves, 09 de noviembre de 2017 11:17 > To: Racket Users > Subject: [racket-users] numerical partitions > > 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 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...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] numerical partitions
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 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 scribble. > Jos > > -Original Message- > From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On > Behalf Of Iain Gray > Sent: jueves, 09 de noviembre de 2017 11:17 > To: Racket Users > Subject: [racket-users] numerical partitions > > 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 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...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
RE: [racket-users] numerical partitions
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 scribble. Jos -Original Message- From: racket-users@googlegroups.com [mailto:racket-users@googlegroups.com] On Behalf Of Iain Gray Sent: jueves, 09 de noviembre de 2017 11:17 To: Racket Users Subject: [racket-users] numerical partitions 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 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...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.