ocean ~master (2021-10-22T21:44:26.740458)
Dub
Repo
ReplaceAll
ocean
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
ocean
core
Tuple
templates
DerivedToFront
IndexOf
MostDerived
Remove
RemoveAll
Replace
ReplaceAll
Reverse
Tuple
Unique
Returns a Tuple with all occurrences of T replaced with U.