YAP
7.1.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
y
~
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
y
~
Variables
a
c
e
f
g
i
k
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Functions
c
e
m
y
Variables
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
apply_macros.yap
Go to the documentation of this file.
1
%% @file apply_macros.yap
2
%% @author E. Alphonse from code by Joachim Schimpf
3
%% @date 15 June 2002
4
%% @brief Purpose: Macros to apply a predicate to all elements
5
%% of a list or to all sub-terms of a term.
6
7
:- module(
apply_macros
, []).
8
%% @namespace maplist
9
10
/**
11
12
@defgroup apply_macros Apply Interface to maplist
13
@ingroup maplist
14
@{
15
16
This library provides a SWI-compatible set of utilities for applying a
17
predicate to all elements of a list.
18
19
The apply library just forwards
20
definitions to the @ref maplist library, these include:
21
22
23
+ maplist/2,
24
+ maplist/3,
25
+ maplist/4,
26
+ maplist/5,
27
+ include/3,
28
+ exclude/3,
29
+ partition/4,
30
+ partition/5.
31
32
33
*/
34
35
:-
reexport
(maplist).
36
37
:-
reexport
(mapargs).
38
39
%% @}
40
reexport/1
reexport(+F)
library
apply_macros.yap
Generated by
1.9.3