Search

February 22, 2022
Learn »
...an alias as in your original post can be used as well:

template mappified(alias...
February 22, 2022
Learn »
...char) as elements. It is just an alias:

  alias string = immutable(char)[];

> where it's...
February 22, 2022
Learn »
...is* an array. `string` is just an alias for
`immutable(char)[]`.


T

-- 
Gone Chopin. Bach...
February 22, 2022
Learn »
...array` as follows:

```d
float[] get_map(alias f)(float[] input){
   import std.algorithm : map...
February 22, 2022
General »
...The example shows a way to (unintentionally) alias an existing fd (obtained through whichever means...
February 21, 2022
Learn »
...take care of the rest:

auto mapped(alias f, Range) (Range range) {
  import std.algorithm...
February 21, 2022
Learn »
Oh, that’s an unfortunate limitation but at least there’s a workaround. Thank you!
February 21, 2022
Learn »
...the alias in the example. i.e. something like:


```
float[] function(float[]) get_map(alias...
February 21, 2022
Learn »
...template argument deduction: it cannot "see through" `alias` templates to deduce the underlying type.

The...
February 21, 2022
Learn »
...hNaSFh:

```d
import std.sumtype;

struct Unit {}
alias Option(T) = SumType!(T, Unit);

void foobar...
242 243 244 245 246 247 248 249 250 251 252
Next ›   Last »