algorithms/ foreach.bi

Summary
algorithms/ foreach.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
Functions
ForEachApplies an operation //op// for every element in the range [//first//, //last//).

License

Copyright © 2009, FreeBASIC Extended Library Development Group

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

Functions

ForEach

declare sub ForEach overload (byval first as fbext_TypeName(T_) ptr,
byval last as fbext_TypeName(T_) ptr,
byval op_ as sub ( byref as fbext_TypeName(T_) ))

Applies an operation //op// for every element in the range [//first//, //last//).

Parameters

firstA pointer to the first element in the range.
lastA pointer one-past the last element in the range.
opThe operation to perform.
declare sub ForEach overload (byval first as fbext_TypeName(T_) ptr,
byval last as fbext_TypeName(T_) ptr,
byval op_ as sub ( byref as fbext_TypeName(T_) ))
Applies an operation //op// for every element in the range [//first//, //last//).