title: Print generic array to console
body: <p>How can I print a generic array to console? This works for simple integer arrays but not for generic ones.</p>
  
  <pre><code>class procedure Print(const A: TArray&lt;Integer&gt;; const Name: String);
  var
    I: Integer;
  begin
    Write('Array ' + Name +' : ');
    Write('[');
    for I := 0 to High(A) do
    if I &lt;&gt; High(A) then
    begin
      WriteLn(A[I]);
      Write(', ');
    end
    else
    Write(A[I]);
    Write(']');
    WriteLn('');
  end;
  </code></pre>