select

fun <R : Any> DataSet<*>.select(type: KType, namePattern: Name? = null, filter: (name: Name, meta: Meta) -> Boolean = { _, _ -> true }): ActiveDataSet<R>

Select all data matching given type and filters. Does not modify paths

Parameters

namePattern

a name match patter according to Name.matches

filter

addition filtering condition based on item name and meta. By default, accepts all

inline fun <R : Any> DataSet<*>.select(namePattern: Name? = null, noinline filter: (name: Name, meta: Meta) -> Boolean = { _, _ -> true }): DataSet<R>

Select a single datum of the appropriate type