News for hackers. Stuff that matters.
Re:Show HN: libcodr7 – fundamental collections in the spirit... by jcheng on Monday December 30, 2019 @03:53PM (#21916622)
> values can be inserted on different lists without new allocations

Not multiple lists at the same time, surely...?

Re:Show HN: libcodr7 – fundamental collections in the spirit... by DSMan195276 on Monday December 30, 2019 @04:01PM (#21916686)
They were talking about taking a value off of one list and adding it to a different one, which doesn't require an allocation, but the entity is never on more than one list at a time in that scenario.

That said, you can add an entity onto multiple lists if it contains multiple nodes embedded inside. You have to keep track of which nodes are attached to which lists though (Which generally just means being consistent on which you use where). If you give them decent names, then it's not usually a problem, but it can sometimes get a little confusing if you're not careful.

Re:Show HN: libcodr7 – fundamental collections in the spirit... by rafa1981 on Monday December 30, 2019 @05:58PM (#21917460)
Obviously not