LinkedList and Deque API in DCollections
d coder
dlang.coder at gmail.com
Thu Jun 21 08:22:39 PDT 2012
>
>
> auto append(T, V)(ref T t, V value)
> {
> return t.insert(t.begin, value);
> }
>
> should do the trick.
> (you may add a guard to make sure T is a container)
>
Thanks Christophe. I think you are relying on UFCS here.
So cool.
Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120621/a52e74a7/attachment.html>
More information about the Digitalmars-d
mailing list