private static Token GetToken(char p, IEnumerable
{
return validTokens.FirstOrDefault(item => item.Value.Contains(p));
}
(define GetToken [p validTokens]
(first validTokens (define [item] (contains (value item) p)))
)
I have not decided if this is proof I have lost my imagination or C#'s progress as a language.