RosettaCodeData/Task/Higher-order-functions/Prolog/higher-order-functions.pro
2015-11-18 06:14:39 +00:00

4 lines
108 B
Prolog

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