https://issues.dlang.org/show_bug.cgi?id=5502
Seb <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |bootcamp CC| |[email protected] --- Comment #5 from Seb <[email protected]> --- > import std.array: AAFromKeys; > void main() { > bool[dchar] dcharSet = AAFromKeys("ABCD", true); > } This is already easily possible today: --- assocArray("ABCD".zip(true.repeat)).writeln; --- https://run.dlang.io/is/7j1ObE We could add another overload to assocArray that accepts two arguments: values + keys -> PR: https://github.com/dlang/phobos/pull/6155 --
