@@ -24,14 +24,14 @@ Value: RangeReplaceableCollection, Value.Element == Character {
2424
2525 public var pattern : String
2626 public var placeholders : Placeholders
27- public var hidden : Bool
27+ public var hidden : Bool = false
2828
2929 //=------------------------------------------------------------------------=
3030 // MARK: Initializers
3131 //=------------------------------------------------------------------------=
3232
33- @inlinable public init ( _ pattern: String , placeholders: Placeholders = . init( ) , hidden : Bool = false ) {
34- self . pattern = pattern; self . placeholders = placeholders; self . hidden = hidden
33+ @inlinable public init ( _ pattern: String , placeholders: Placeholders = . init( ) ) {
34+ self . pattern = pattern; self . placeholders = placeholders
3535 }
3636
3737 //=------------------------------------------------------------------------=
@@ -41,17 +41,18 @@ Value: RangeReplaceableCollection, Value.Element == Character {
4141 /// Marks a single character as the style's placeholder.
4242 @inlinable public func placeholders( _ character: Character ,
4343 where predicate: @escaping ( Character ) -> Bool ) -> Self {
44- var S0 = self ; S0 . placeholders = . init ( ( character, predicate) ) ; return S0
44+ self . placeholders ( ( character, predicate) )
4545 }
4646
47- /// Marks multiple characters as the style's placeholders .
48- @inlinable public func placeholders( _ placeholders : [ Character : ( Character ) -> Bool ] ) -> Self {
49- var S0 = self ; S0 . placeholders = . init( placeholders ) ; return S0
47+ /// Marks a single character as the style's placeholder .
48+ @inlinable public func placeholders( _ some : ( Character , ( Character ) -> Bool ) ) -> Self {
49+ var S0 = self ; S0 . placeholders = . init( some ) ; return S0
5050 }
5151
52- //=------------------------------------------------------------------------=
53- // MARK: Transformations
54- //=------------------------------------------------------------------------=
52+ /// Marks multiple characters as the style's placeholders.
53+ @inlinable public func placeholders( _ many: [ Character : ( Character ) -> Bool ] ) -> Self {
54+ var S0 = self ; S0 . placeholders = . init( many) ; return S0
55+ }
5556
5657 /// Hides the pattern's suffix.
5758 ///
0 commit comments