Higher-order functions: Difference between revisions

→‎{{header|Prolog}}: Generalize solution to work with any Prolog system
(Added Elixir)
(→‎{{header|Prolog}}: Generalize solution to work with any Prolog system)
Line 2,074:
 
=={{header|Prolog}}==
{{works with|SWI Prolog}}
 
<lang prolog>
first(Predicate) :- call(Predicate).
second(Argument) :-print write(Argument).
 
:-first(second('Hello World!')).
Anonymous user