:sig
function map(items : dval, mapper : function(value : string) string) dval

:params
items : the input list
mapper : the function that transforms each item

:returns
a new list of transformed strings

:content
`map()` calls `mapper` for each item in `items`.

It converts each item to a string before it calls `mapper`. The function returns a new `dval` list.

:example capy render
var names := dval(["ada", "grace"])
var names_upper := map(names, function(name : string) string { return upper(name) })
print(join(names_upper, ","), "\n")

:see-group
collections

:see
>string
print
