Codebase list ohcount / d4c3f612-6685-4dc0-9339-5433a0a275c0/main test / src_dir / prolog.pl
d4c3f612-6685-4dc0-9339-5433a0a275c0/main

Tree @d4c3f612-6685-4dc0-9339-5433a0a275c0/main (Download .tar.gz)

prolog.pl @d4c3f612-6685-4dc0-9339-5433a0a275c0/mainraw · history · blame

1
2
3
4
5
6
7
8
9
/* test file for Prolog parsing */

% this is a Prolog source file

% select(Element, List, Remaining)

select(H, [H| T], T).
select(H, [X| R], [X| T]) :-
	select(H, R, T).