map[procedure] map proc list1 list2 ...R5RS: The lists must be lists, and proc must be a procedure taking as many arguments as there are lists and returning a single value. If more than one list is given, then they must all be the same length. Map applies proc element-wise to the elements of the lists and returns a list of the results, in order. The dynamic order in which proc is applied to the elements of the lists is unspecified. SRFI-1 extends R5RS allow the arguments to be of unequal length; it terminates when the shortest list runs out. R6RS: The implementation should check all the lists have the same
length (it is a recommendation; so srfi-1 semantics and r6rs semantics
can coexist, IMHO --shiro). See also for-each, map-in-order. [generic] map proc coll1 coll2 ...Gauche extends this to take arbitrary collections (with gauche.collection module). | About This SiteHome Alphabetical Indexa b c d e f g h i j k l m n o p q r s t u v w x y z other ConceptsConcept:CaseSensitivity Concept:DocumentationFormat Concept:ExtendedLambdaList Concept:FileSystem Concept:FindAndAnyInCollection Concept:ForeignInterface Concept:HashTable Concept:Module Concept:Networking Concept:ObjectSystem Concept:Process Concept:RegularExpression Concept:UserGroup Implementations
External Links |