Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
161 B
1
Indexable
Never
acc([1|T]):-
acc1(T).
acc1([0,1|T]):-
acc2(T).
acc2([0,1|T):-
acc2(T).
acc2([1,1,1|T]):-
acc3(T).
acc3([1,0,1|T]):-
acc3(T).
acc3([0,0]).
acc3([1,1]).
Leave a Comment