Thread overview | |||||
---|---|---|---|---|---|
|
December 11, 2018 [Issue 19475] add a staticIndexOf overload taking a pred | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19475 Simen Kjaeraas <simen.kjaras@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simen.kjaras@gmail.com --- Comment #1 from Simen Kjaeraas <simen.kjaras@gmail.com> --- This can be trivially done as a combination of existing templates: import std.meta; enum predStaticIndexOf(alias Fn, T...) = staticIndexOf!(true, staticMap!(Fn, T)); template MoreThan2(T...) { enum MoreThan2 = T[0] > 2; } unittest { static assert(predStaticIndexOf!(MoreThan2, 1,2,3) == 2); } -- |
December 17, 2022 [Issue 19475] add a staticIndexOf overload taking a pred | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19475 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P4 -- |
December 01 [Issue 19475] add a staticIndexOf overload taking a pred | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19475 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9767 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation