These definitions are inconsistent with map and fold, which had a type check, is.function(fn), but these other ones do not. This is the bad kind of inconsistency. Why have type safety in some functions but not others when they all follow the same general pattern? These should now be updated with a type constraint as indicated in the definition for fold and map.