-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Sometimes you need to fill in the whole array with values different from type defaults. For example, you may have a bool array, and you'd like make it have all true values, instead of all false.
Seems like there is no built-in procedure to do that.
As a workaround, it's possible to use mapIt from sequtils, but it doesn't look straightforward.