D-Programming-Language/phobos — pull request #1046 by Poita (2013-01-01 20:44:13+00:00)
Title: Added std.range.only - range of a single element.

This adds range type `Only!T` and helper function `only!T(T)`. This is a range that iterates a single value, useful when some interface requires a range, but you only have a single value.