of

fun of(vararg flagValues: Pair<String, Term>): FlagStore

Creates a FlagStore out of the given name-value pairs.


Creates a FlagStore out of the given flags map.


fun of(vararg notableFlagValues: NotableFlag): FlagStore

Creates a FlagStore setting every one of notableFlagValues to its NotableFlag.defaultValue.

Uses map { }.toMap() rather than associate { }: the latter reproducibly lost every entry but the last one on Kotlin/JS here, collapsing them into a single {undefined: undefined} entry - see it.unibo.tuprolog.ui.gui.prolog.SolverFactoryProfileTest, which failed on the JS target only until this was changed; reproduced down to Array<NotableFlag>.associate { it.toPair() } specifically.