.MetaModelica.MetaModelica.Dangerous.listReverseInPlace

Information

O(n). A destructive listReverse. May cause segmentation faults if the list contains *any* non-NIL element that was allocated in a constant data segment. Will cause all other points to the head or within this list to now point to another list. Do not use unless you are really certain the compiler cannot optimise any part of the list into a constant data segment.

Interface

function listReverseInPlace<A>
  input list<A> inList;
  output list<A> outList;
end listReverseInPlace;

Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos