Anonymous user
First-class functions: Difference between revisions
m
→firstclass.m: Corrected composition order.
(→{{header|Nemerle}}: Added a Mercury implementation.) |
m (→firstclass.m: Corrected composition order.) |
||
Line 892:
apply([], A, Results) :- Results = A.
apply([F, R|Functions], A, Results) :-
apply(Functions, [compose(
apply([_], _, _) :- throw("This can't happen!").</lang>
|