sicstus1.pl

loading
details
attribute value
description
owner Johannes Waldmann
uploaded 2017-08-17 03:45:07.0
disk size 490 Bytes
downloadable true
type
attribute value
name no_type
processor id 1
description this is the default benchmark type for rejected benchmarks and benchmarks that are not associated with a type.
owning community none
loading contents
%query: reverse_concatenate(i,i,o).
% sicstus1: Example of simple list processing


% mode: concatenate[i,i,o]
concatenate([], L, L).
concatenate([X|L1], L2, [X|L3]) :- concatenate(L1, L2, L3).

% mode: member[i,i]
member(X, [X|L]).
member(X, [Y|L]) :- member(X, L).

% mode: reverse[i,o]
reverse(L, L1) :- reverse_concatenate(L, [], L1).

% mode: reverse_concatenate[i,i,o]
reverse_concatenate([], L, L).
reverse_concatenate([X|L1], L2, L3) :-
        reverse_concatenate(L1, [X|L2], L3).
popout

content may be truncated. 'popout' for larger text window.

actions get anonymous link download benchmark