qtil
advanced-security/qtil-swift 0.0.3
Search

Module ListBuilder

A module that declares predicates of2(...) to of8(...) for building a string from a list of string-valued arguments separated by a custom separator.

To build a type that extends string, use TypedListBuilder<separator, T>. To build a string from non-string arguments, use ListBuilderOf<separator, T, toString>. To build a type that extends string from non-string arguments, use TypedListBuilderOf<separator, T, S, toString>.

Example usage:

ListBuilder<Separator::comma/0>::of2("foo", "bar") // returns "foo,bar"

Import path

import qtil.list.ListBuilder

Imports

TypedListBuilder<ListBuilder::separator, string>

A module that declares predicates of2(...) to of8(...) for building a type that extends string from a list of string-valued arguments separated by a custom separator.

Parameters

separatorpred