This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Constructs for programming with sequences
- To: Mikael Djurfeldt <mdj@nada.kth.se>
- Subject: Re: Constructs for programming with sequences
- From: Klaus Schilling <Klaus.Schilling@home.ivm.de>
- Date: Tue, 1 Jun 1999 11:17:38 +0200 (CEST)
- Cc: Mikael Djurfeldt <djurfeldt@nada.kth.se>, guile@cygnus.com
- References: <199905311843.UAA26099@mdj.nada.kth.se><xy7hfot5atm.fsf@mdj.nada.kth.se>
- Reply-To: Klaus.Schilling@home.ivm.de
Mikael Djurfeldt writes:
> Mikael Djurfeldt <mdj@nada.kth.se> writes:
>
> > 1. Generation
> >
> > (map-index N PROC) --> LIST
>
> Another candidate for this one could be
>
> (for-map FROM TO STEPPER PROC)
>
> Maybe that looks even prettier in the code
>
> (for-map 1 10 1+
> (lambda (i)
> i))
>
Couldn't one use Shivers' iota and the stock map procedure?
Klaus Schilling