Codebase list ohcount / 85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main test / src_dir / prolog.pl
85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main

Tree @85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main (Download .tar.gz)

prolog.pl @85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main

8e3aae6
 
 
 
 
 
 
 
 
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).