Call a function for each string
lib callCapy
function each(items : any, callback : function(value : string) string)
Description
each calls callback once for each item in a list-shaped any.
The callback receives a string value. each processes items in list order.
Return Values
This function returns no value.
Example
Capy
var items := split("one,two", ",")
each(items, function(value : string) string { print(value); return "" })
print("\n")
Output
onetwo