[Prev][Next][Index][Thread]

Re: Quick permutations



Rob <robm@h2g2.com> writes:

> I keep hearing Lispish voices in my head about map() but I don't know
> what's best for a single collection in Dylan. Try to break down the task
> to use for( x in seq ) rather than map. Maybe.

In Gwydion Dylan, there's no difference between using maps and
loops. The compiler recognizes map, reduce et al., and converts them
to loop constructs.

If the compiler were smart enough, it could do the conversion for all
functions, by tail recursion removal and inlining. I don't know
whether it is or not...

Andreas




References: