I have some fields in a component (included in base component by <& file.mi &>, nothing fancy here) and I can't figure out how to set default value for an array.
My deffinition look like this:
<%class>
has 'field' => (is => 'ro', isa => 'ArrayRef[Int]', default => sub{\[1,3]});
</%class>
then in
<%init>
dp_live($.field);
</%init>
I got an empty array. Nothing that I found on internet seems to work. I'm sure that it is something minor, bo I just can't see it.
Thanks.