Re: Higher order programming: apply/3 implemented in swi



"
What about this?

apply(F,Args,Term) :-
F =.. List,
append(List, Args, All),
Term =.. All.

"
I've just noticed this part of your message: yeah, you're right, it's
more elegant. I wasn't aware of the use of " ..: operator. Thanks for
pointing out.
.



Relevant Pages