ocean ~v6.x.x (2022-01-14T16:08:36.1174149)
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.