lapply-methods: Evaluate function on each element of a StringSet

lapply-methodsR Documentation

Evaluate function on each element of a StringSet

Description

This function loops over the elements of a StringSet and evaluates the specified function on each value. Since the StringSet-class is an opaque, internal data structure of the libstree library, this method takes care of handling the details of the iteration.

Methods

X = "StringSet", FUN = "function"

the first argument is the StringSet-class whose elements are to be processed sequentially. The second argument is a function which is called for each element. The argument to this function is the string from that element of the string set.


omegahat/Rlibstree documentation built on Jan. 17, 2024, 6:37 p.m.