On 08/06/2018 04:38 PM, ToddAndMargo wrote:
Hi All,

Is there a way to force all the members of an array
to be integers and to error out is a non-integer
is written to one of its cells?


Many thanks,
-T


On 08/06/2018 01:40 PM, Benji wrote:
> my Int @a = 1, 2, 3;
>
> @a.push: 'a';
>
> # Type check failed in assignment to @a; expected Int but got Str ("a")
>

Thank you!

Reply via email to