HI i have these two tables shown below.
CREATE TABLE accounts
(
account INTEGER NOT NULL,
account_type ENUM('single','corporation')NOT NULL,
last_trans_date DATE NOT NULL,
minimum_balance DECIMAL(10,2) NOT NULL,
balance DECIMAL(10,2) NOT NULL,
PRIMARY KEY (account)
);
CREATE TABLE transactions...
i have been trying to find all possible combinations of a list given to me. This is the program i have at the moment but i can't see why it doesn't work. Please Could Someone help me.
swap([],[]).
swap([H|[H1|T]],[H1|[H|T1]]):-
swap(T,T1).
move(List,New):-
swap(List,New1),
New is...
i have been trying to find all possible combinations of a list given to me. This is the program i have at the moment but i can't see why it doesn't work. Please Could Someone help me.
swap([],[]).
swap([H|[H1|T]],[H1|[H|T1]]):-
swap(T,T1).
move(List,New):-
swap(List,New1),
New is New1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.