Like search_files but for functions

search_function(pat, fun)

Arguments

pat

Pattern to match

fun

Function to inspect