This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
2015-12-15 09:28:43 +00:00
|
|
|
|
2017-04-07 23:10:59 +01:00
|
|
|
%% @file apply_macros.yap
|
|
|
|
%% @author E. Alphonse from code by Joachim Schimpf
|
|
|
|
%% @date 15 June 2002
|
|
|
|
%% @nrief Purpose: Macros to apply a predicate to all elements
|
2002-06-18 05:08:01 +01:00
|
|
|
% of a list or to all sub-terms of a term.
|
|
|
|
|
2009-06-10 17:36:28 +01:00
|
|
|
:- module(apply_macros, []).
|
|
|
|
|
2017-04-07 23:10:59 +01:00
|
|
|
/**
|
|
|
|
|
|
|
|
@defgroup apply_macros Apply Interface to maplist
|
2015-11-18 15:06:25 +00:00
|
|
|
@ingroup library
|
|
|
|
@{
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2013-10-04 18:18:04 +01:00
|
|
|
:- reexport(maplist).
|
|
|
|
|
|
|
|
:- reexport(mapargs).
|
2008-05-15 14:41:48 +01:00
|
|
|
|
2015-12-15 09:28:43 +00:00
|
|
|
%% @}
|