On Thursday, June 13, 2019 3:49:04 AM MDT Jacob Carlborg via Digitalmars-d-
learn wrote:
> On 2019-06-12 22:42, Mek101 wrote:
> > I didn't know it applied to templates other than lambdas.
> >
> > Thank you for your explanation.
>
> It applies to templates, lambdas (which basically are templates)
On 2019-06-12 22:42, Mek101 wrote:
I didn't know it applied to templates other than lambdas.
Thank you for your explanation.
It applies to templates, lambdas (which basically are templates) and
nested functions.
--
/Jacob Carlborg
I didn't know it applied to templates other than lambdas.
Thank you for your explanation.
On Wed, Jun 12, 2019 at 07:46:12PM +, Mek101 via Digitalmars-d-learn wrote:
[...]
> > public size_t indexOf(alias pred = "a == b", Range)(Range array)
> > {
> > alias predicate = unaryFun!pred;
> > for(size_t i = 0; i < array.length; i++)
> > if(predicate(array[i]))
> >