Ok, I thought I found the answer in an earlier thread <a href="http://forum.dlang.org/thread/lozpofrboxsfybmhkhch@forum.dlang.org">http://forum.dlang.org/thread/lozpofrboxsfybmhkhch@forum.dlang.org</a><div><br></div><div><div>

auto range = find(list[], elem);</div><div>list.remove(take(range, 1));</div><div><br></div></div><div>But it does not work. Gives me:</div><div><br></div><div><div>Error: function std.container.DList!(Foo).DList.remove (Range r) is not callable using argument types (Take!(Range))</div>

<div>Error: cannot implicitly convert expression (take(range, 1LU)) of type Take!(Range) to Range</div></div><div><br></div><div>I get similar issues if I try using std.algorithm.filter instead of find.</div><div><br></div>

<div>I am using latest DMD snapshot from github.</div><div><br></div><div>Regards</div><div>- Puneet</div><div><br></div>