This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Constructs for programming with sequences


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]