robrix/Traversal — pull request #43 by robrix (2014-12-05 06:15:59+00:00)
Title: Nil literal convertible

Stream conforms to `NilLiteralConvertible`, and we use `nil` wherever possible.

In addition to reducing the cognitive load of the type, this has much better behaviour w.r.t. type inferencing in a couple of cases:

- when returning `Stream

` from a method on `Stream`
- when the value would otherwise have to be explicitly specified as `Stream.Nil` instead of simply `.Nil` or `Nil`

Fixes #38.