LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Type: text/plain; charset=us-ascii
Date: Thu, 2 Feb 2012 10:29:58 +0000
Content-Disposition: inline
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
From: dongen <[log in to unmask]>
Message-ID: <20120202102957.GB14566@csmvddesktop>
MIME-Version: 1.0
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments: text/plain (30 lines)
Howsagoin,


I've started exploring the LaTeX3 sources documentation but
I couldn't find the equivalent of the following predicate
functions for token lists:

 o  \tl_all_TF:NNTF <token list> <predicate> <true> <false>
    results in <true> if all members of <token list> satisfy
    <predicate>. The semantics should be that the evaluation
    is start-to-finish of <token list> but that the evaluation
    is aborted as soon as one of the tokens in <token list>
    doesn't satisfy <predicate>.
 o  \tl_some_TF:NNTF <token list> <predicate> <true> <false>
    results in <true> if some member of <token list> satisfies
    <predicate>. The semantics should be that the evaluation
    is start-to-finish of <token list> but that the evaluation
    is aborted as soon as one of the tokens in <token list>
    satisfies <predicate>.

Similar versions may also be useful for other kinds of lists.

Are such macros defined? If not, do you think it's a good idea
to introduce them?

Regards,


Marc van Dongen

ATOM RSS1 RSS2