There was an error while loading. Please reload this page.
using System.Console; def emptyArray1 = array(0) : array[long]; def emptyArray2 : array[int] = array(0); def smallNums = array[1, 2, 3]; def notInitializedArray = array(5); // type inferred from usage notInitializedArray[2] = 42; WriteLine($"emptyArray1 = '..$emptyArray1'"); WriteLine($"emptyArray2 = '..$emptyArray2'"); WriteLine($"nsmallNums = '..$smallNums'"); WriteLine($"nnotInitializedArray = '..$notInitializedArray'");
emptyArray1 = '' emptyArray2 = '' nsmallNums = '1, 2, 3' nnotInitializedArray = '0, 0, 42, 0, 0'
[Copyright ©](Terms of use, legal notice)