Allowable Strings
Defines a set of allowable strings for use in validation. Also supplies Suggestions to generate suggestion popups in-game.
NOTE: Expectation is that the predicate and supplier are based on matching sets of information; someone in theory could use the suppliers information to predicate an input, and the predicate could be used on a theoretical "parent" dataset of string to derive the same contents as the supplier. Behavior may be undefined if this isn't the case.
Author
fzzyhmstrs
Since
0.2.6
Parameters
Predicate
Supplier> - supplies all allowable String in the form of a list. As typical with suppliers, it is not required but beneficial that the supplier provide a new list on each call
See also
Constructors
Functions
Validates (not corrects) the provided String versus the provided Predicate
Returns Suggestions based on the allowable string list and a choice validator
Validates the provided String versus the provided Predicate