ext/ preprocessor/ seq/ reverse.bi

This file is part of the <ext/Preprocessor> library API, and can be directly included by user programs.

Summary
ext/ preprocessor/ seq/ reverse.biThis file is part of the <ext/Preprocessor> library API, and can be directly included by user programs.
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group Copyright © 2002, Paul Mensonides
Macros
fbextPP_SeqReverseReverses the elements of a sequence.

License

Copyright © 2009, FreeBASIC Extended Library Development Group Copyright © 2002, Paul Mensonides

Distributed under the Boost Software License, Version 1.0.  See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

Macros

fbextPP_SeqReverse

# define fbextPP_SeqReverse(
   seq
) FBEXT_PP_SEQ_FOLDRIGHT( fbextPP_SeqReverse__M, FBEXT_PP_EMPTY(), seq)

Reverses the elements of a sequence.

Parameters

seqA sequence.

Returns

Returns the reversed sequence.

Description

Given a sequence (a)(b)(c)(d), this macro expands to (d)(c)(b)(a).

# define fbextPP_SeqReverse(
   seq
) FBEXT_PP_SEQ_FOLDRIGHT( fbextPP_SeqReverse__M, FBEXT_PP_EMPTY(), seq)
Reverses the elements of a sequence.