fmap

func fmap(f : Map, c : Set+List+String) -> Set+List
  return {all f(e) for e in c} when c in Set
  return [all f(e) for e in c]

Applies the given (computed) functional mapping to each element of a list or set, resulting in a list or set of mapped elements. For example:
  fmap(upcase, {`abc' `def'}) = {`ABC' `DEF'}
  fmap(`abcdefghijklmnopqrstuvxyz', [1 3 5]) = [`a' `c' `e']
See also: slice.
Herman Venter

This is Slim documentation as snarfed on 27 May 1999 by dB.