At Thu, 9 Apr 2015 08:22:12 -0700 (PDT), Jerry Jackson wrote: > The compatibility/mlist module has lots of support functions but I'd > like to be able to apply racket functions to the lists I've > constructed and I don't see any "mapply". I understand that the use > of mutable cons cells is discouraged but I don't currently know of a > better way to do lazy lists. If there is a different recommended way, > I'd like to know about it. If not: > > 1) Is there an equivalent of mapply that I just haven't found or > 2) Is there a reason it's a really bad idea or > 3) Was it just left out because nobody so far needed it?
I think (3), but does `mlist->list` plus `apply` work for your purposes? (define (mapply f an-mlist) (apply f (mlist->list an-mlist))) -- 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.