Convert to array.
LinkedList!int list; scope(exit) list.free(); list.insertBack(1); list.insertBack(2); list.insertBack(3); auto arr = list.toArray(); assert(arr == [1,2,3]); Delete(arr);
See Implementation
Convert to array.