immutable struct Node{ string s; }
Node[] f()
{
Node[] arr = ...?
return arr;
}How to fill an array, if its elements are immutable? I want to assign values calculated by some function.
immutable struct Node{ string s; }
Node[] f()
{
Node[] arr = ...?
return arr;
}How to fill an array, if its elements are immutable? I want to assign values calculated by some function.