tango ~master (2021-12-14T19:14:08.8989381)
Dub
Repo
ReplaceAll
tango
core
Tuple
Returns a Tuple with all occurrences of T replaced with U.
template
ReplaceAll (
T
U
TList
...
) {
alias
ReplaceAll
=
TList
;
alias
ReplaceAll
=
Tuple
!(
U
,
ReplaceAll
!(
T
,
U
,
TList
[
1
..$]))
;
alias
ReplaceAll
=
Tuple
!(
TList
[
0
],
ReplaceAll
!(
T
,
U
,
TList
[
1
..$]))
;
}
Members
Aliases
ReplaceAll
alias
ReplaceAll
=
TList
Undocumented in source.
ReplaceAll
alias
ReplaceAll
=
Tuple
!(
U
,
ReplaceAll
!(
T
,
U
,
TList
[
1
..$]))
Undocumented in source.
ReplaceAll
alias
ReplaceAll
=
Tuple
!(
TList
[
0
],
ReplaceAll
!(
T
,
U
,
TList
[
1
..$]))
Undocumented in source.
Meta
Source
See Implementation
tango
core
Tuple
templates
DerivedToFront
IndexOf
MostDerived
Remove
RemoveAll
Replace
ReplaceAll
Reverse
Tuple
Unique
Returns a Tuple with all occurrences of T replaced with U.