|
| class | DynList |
| | Recorre condicionalmente el contenedor y ejecuta una operation mientras ésta retorne true. More...
|
| |
Programación funcional
Aleph-w exporta primitivas de programación funcional. Las rutinas están inspiradas del estándar de la biblioteca general de ML; concretamente las funciones que atañen a listas.
Puesto que los contenedores de
Aleph-w poseen iteradores para inspeccionar todos sus elementos, el soporte de programación funcional es extendido para todos los contenedores.
Hay dos formas en que
Aleph-w soporta programación funcional:
◆ extract_from_stl_container()
template<class Container >
| Aleph::DynList<typename Container::value_type> extract_from_stl_container |
( |
const Container & |
c | ) |
|
|
inline |
Extract all the item of stl container ans save them in a DynList
◆ range() [1/2]
template<typename T = int, template< typename > class Container = DynList>
| Container<T> Aleph::range |
( |
const T |
n | ) |
|
|
inline |
Return a range 0, 1, ... n - 1
- Parameters
-
- Returns
- a container with the range (according to the template parameter, which is DynList
◆ range() [2/2]
template<typename T = int, template< typename > class Container = DynList>
| Container<T> Aleph::Aleph::range |
( |
const T |
n | ) |
|
|
inline |
Return a range 0, 1, ... n - 1
- Parameters
-
- Returns
- a container with the range (according to the template parameter, which is DynList
◆ rep() [1/2]
template<typename T = int>
| DynList<T> Aleph::rep |
( |
size_t |
n, |
|
|
const T & |
item |
|
) |
| |
|
inline |
Create a sequence of repeated items
- Parameters
-
| [in] | n | number of items |
| [in] | item | the valur to be repeated |
- Returns
- a container with n instances of item value
◆ rep() [2/2]
template<typename T = int>
| DynList<T> Aleph::Aleph::rep |
( |
size_t |
n, |
|
|
const T & |
item |
|
) |
| |
|
inline |
Create a sequence of repeated items
- Parameters
-
| [in] | n | number of items |
| [in] | item | the valur to be repeated |
- Returns
- a container with n instances of item value