dot-create_Cartesian_iterable: Creates Cartesian product of iterators.

.create_Cartesian_iterableR Documentation

Creates Cartesian product of iterators.

Description

Creates Cartesian product of iterators.

Usage

.create_Cartesian_iterable(initializers, get_next, sspace)

Arguments

initializers

A list of initializer functions (with no arguments) for iterators.

get_next

A function for retrieving next item for an iterator argument; it assumes that the iterator returns NULL when finished.

sspace

elements to be used (a list of vectors)

Value

A function that returns list of values, and stops with "StopIteration" message when finished, so that it can be used with the iterators::iter() function to create an iterator that works with foreach.


ldamatch documentation built on May 29, 2024, 7:56 a.m.