Test every string
lib callCapy
function every(items : any, predicate : function(value : string) bool) bool
Description
every tests each string in a list-shaped any with predicate.
This function does not change items.
Return Values
This function returns true when every item matches. It returns true for an empty list.
Example
Capy
var items := split("one,two", ",")
print(every(items, function(value : string) bool { return value != "" }), "\n")
Output
true