I create a function that receives another function as an argument. How to check if such a function really exists?
It is example:
f1 = function() print("f1")
f2 = function(f){
f()
}
f2(f1)
How to check the argument f so that f2(f3) it doesn't cause an error.