Files
mercury/tests/dppd/doubleapp_impl.m
Peter Ross 51497341cc Add the DPPD (dozens of problems in partial deduction) suite to the
Estimated hours taken: 0.1

Add the DPPD (dozens of problems in partial deduction) suite to the
tests directory.
1999-02-20 11:34:42 +00:00

23 lines
389 B
Mathematica

:- module doubleapp_impl.
:- interface.
:- import_module list.
:- pred double_app(list(T), list(T), list(T), list(T)).
:- mode double_app(in, in, in, out) is det.
:- implementation.
double_app(X,Y,Z,Res) :-
app(X,Y,Int),
app(Int,Z,Res).
:- pred app(list(T), list(T), list(T)).
:- mode app(in, in, out) is det.
app([],L,L).
app([H|X],Y,[H|Z]) :-
app(X,Y,Z).