Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


 
first(Predicate) :- call(Predicate).
second(Argument) :- write(Argument).
 
:-first(second('Hello World!')).
 