41 lines
722 B
Prolog
41 lines
722 B
Prolog
|
|
%% @file apply_macros.yap
|
|
%% @author E. Alphonse from code by Joachim Schimpf
|
|
%% @date 15 June 2002
|
|
%% @brief Purpose: Macros to apply a predicate to all elements
|
|
%% of a list or to all sub-terms of a term.
|
|
|
|
:- module(apply_macros, []).
|
|
%% @namespace maplist
|
|
|
|
/**
|
|
|
|
@defgroup apply_macros Apply Interface to maplist
|
|
@ingroup maplist
|
|
@{
|
|
|
|
This library provides a SWI-compatible set of utilities for applying a
|
|
predicate to all elements of a list.
|
|
|
|
The apply library just forwards
|
|
definitions to the @ref maplist library, these include:
|
|
|
|
|
|
+ maplist/2,
|
|
+ maplist/3,
|
|
+ maplist/4,
|
|
+ maplist/5,
|
|
+ include/3,
|
|
+ exclude/3,
|
|
+ partition/4,
|
|
+ partition/5
|
|
|
|
|
|
*/
|
|
|
|
:- reexport(maplist).
|
|
|
|
:- reexport(mapargs).
|
|
|
|
%% @}
|