Using a Predicate as a key to a Dictionary

Using a Predicate as the key to a Dictionary. Eventually creating a program that has no if-statements or for-loops.