On this page:
mapper
6.3.90.900

7 Creating functions that map over lists

 (require kw-utils/mapper) package: kw-utils

procedure

(mapper f arg ... #:<kw> kw-arg ...)  procedure?

  f : procedure?
  arg : any/c
  kw-arg : any/c
(mapper #:<kw> kw-arg ...)  procedure?
  kw-arg : any/c
The one-argument case is equivalent to a curried version of map.

(mapper f) is equivalent to (partial map f), and (mapper arg ...) is equivalent to (partial map (partial arg ...)).

Examples:
> (require kw-utils/mapper)
> ((mapper add1) '(1 2 3))

'(2 3 4)

> ((mapper +) '(1 2 3) '(4 5 6))

'(5 7 9)

> ((mapper + 3) '(1 2 3))

'(4 5 6)

> ((mapper + 3) '(1 2 3) '(4 5 6))

'(8 10 12)