digitalmars.D.learn - Filter AA at compile time
- Andrey (5/16) Dec 26 2018 But compiler says:
Hi, I want to filter AA at compile time and do this:void main() { // datamap is some AA enum qaz = "qq"; enum types = datamap.byKeyValue.filter!(pair => qaz.isGood(pair)).assocArray(); types.writeln; }But compiler says:Error: _aaRange cannot be interpreted at compile time, because it has no available source codeWhy, where is a problem? And how to filter it correctly? Write my own foreach-loop?
Dec 26 2018