I want to select a token out of a string if it exists in the string, I've got as far the following but I'm unsure why it doesn't compile:
IList<string> tokens = _animals.Split(';');
Func<string, bool> f1 = str => str.Contains("Dog");
Func<string, Func<string, bool>, string> f2 = str => Equals(f1, true);
var selected = tokens.Select(f2);
Cheers
Ollie