Module ListBuilder
A module for building CSV-like strings, or types that extend string, from a custom separator and/or custom types.
Each module provides predicates of2(...) to of8(...) for creating a list of up to 8 items,
which take either a string or a custom type as input to be converted to a string. The result will
either be a string, or a custom type that extends string.
The following modules are provided:
ListBuilder<separator>: Predicates to build a string from a list of string-valued arguments separated by a custom separator.ListBuilderOf<separator, T, toString>: Predicates to build a string from a list of arguments of a custom typeT, converted to strings via thetoStringpredicate, using a custom separator.TypedListBuilder<separator, S>: Predicates to build a string from a list of string-valued arguments separated by a custom separator, where the result is a custom typeSthat extends string.TypedListBuilderOf<separator, S, T, toString>: Predicates to build a string from a list of arguments of a custom typeT, converted to strings via thetoStringpredicate, using a custom separator, where the result is a custom typeSthat extends string.
A recommended use of this module is by using the predicates defined in the qtil.strings.Chars
module, which defines predicates such as Char::comma/0, Char::colon/0, Char::at/0, etc.
Import path
import qtil.list.ListBuilderImports
| Char | A module that provides a |
| Join | A module for joining strings with a separator, for example, |
| SignaturePredicates | A module for creating signature predicates without requiring separate declarations. |
| SignatureTypes |
Modules
| ListBuilder | A module that declares predicates |
| ListBuilderOf | A module that declares predicates |
| TypedListBuilder | A module that declares predicates |
| TypedListBuilderOf | A module that declares predicates |