fork(1) download
  1. program ideone;
  2.  
  3. type TNested = record
  4. Children: array of TNested;
  5. end;
  6.  
  7. function Nested(const Children: array of TNested): TNested;
  8. begin
  9. SetLength(Nested.Children, Length(Children));
  10. Move(Children[0], Nested.Children[0], Length(Children)*SizeOf(TNested));
  11. end;
  12.  
  13. var n: TNested;
  14. begin
  15. n := Nested([
  16. Nested([])
  17. ]);
  18. end.
Success #stdin #stdout 0s 280KB
stdin
Standard input is empty
stdout
Standard output is empty