On 2020-03-07 16:40:15 +0000, Adam D. Ruppe said:

Use regular foreach with a regular string. Put that inside a function.

Then simply use that function to initialize your other thing and enjoy the magic of CTFE!

Perfect! This implicit CTFE is a tricky thing to see/remember/... Feeling a bit dumb but, hey it works :-)

--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster

Reply via email to