added function for finding index of string within array of strings
added function for determining if string is included in slice of strings
function added for checking if all strings in slice satisfy given predicate
added function for filtering slice of string and returning new slice based on predicate
added function to collect and return new slice of strings, modified in turn by function f