Comment #0 by default_357-line — 2023-07-07T09:03:39Z
```
import std.array;
import std.typecons;
immutable struct S { int a; }
void main() {
auto array = [tuple!("key", "value")(2, S(1))].assocArray;
}
```
Leads to Error: static assert: "assocArray: value type must be mutable"
Since `assocArray(keys, values)` can construct an immutable assoc array just fine, this should also work with `assocArray(range)`.
Comment #1 by robert.schadek — 2024-12-01T16:41:33Z