RosettaCodeData/Task/Higher-order-functions/Prolog/higher-order-functions.pro
2023-07-01 13:44:08 -04:00

4 lines
108 B
Prolog

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