https://issues.dlang.org/show_bug.cgi?id=12592 --- Comment #2 from Nick Treleaven <ntrel-public at yahoo.co.uk> --- I just added an overload of refill so it can behave like your keep(): const r = data.dup.sort().release.refill!uniq; --