--- module main; void main() { struct Tree { int apples; }
import std.container; SList!Tree list; Tree tree = Tree(5); list.insert(tree); //list.linearRemove(tree); // <-- Error. What is the correct way? } ---
Lemonfiend via Digitalmars-d-learn Thu, 26 Jun 2014 07:51:12 -0700
--- module main; void main() { struct Tree { int apples; }
import std.container; SList!Tree list; Tree tree = Tree(5); list.insert(tree); //list.linearRemove(tree); // <-- Error. What is the correct way? } ---