Timeline for Tips for golfing in D2
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 28, 2016 at 16:43 | comment | added | cat |
@AlexA. auto arr = ["a": true, "b": 6]; works, the keys and values must be of compatible types
|
|
Feb 27, 2016 at 23:39 | comment | added | cat |
@AlexA. auto asd = ["a":1, "b": 2]; works, but since KeyType[ValueType] would go in the place of the auto keyword, I don't know if that will always work with types for which literals can't be constructed
|
|
Feb 27, 2016 at 23:30 | comment | added | Alex A. |
Does auto work when building an associative array with the KeyType[ValueType] syntax?
|
|
Feb 27, 2016 at 23:14 | history | answered | cat | CC BY-SA 3.0 |