Merge: Make stream and iterators withable
authorJean Privat <jean@pryen.org>
Mon, 28 Sep 2015 14:36:59 +0000 (10:36 -0400)
committerJean Privat <jean@pryen.org>
Mon, 28 Sep 2015 14:36:59 +0000 (10:36 -0400)
commitb1dc501008c1fe345ff4afd6dd690ba3dab933aa
treeef0e9e6d6235e51900cd11ea90dbe165588e03eb
parentf0a1989e6d988976bbad66f0eacaa4ba9759ce88
parent8b75f0fdc1e90336f4dc117bbe0315308a683fe0
Merge: Make stream and iterators withable

As I wanted to use the `with` statement on Iterators in order to experiment with #1735, I realized that neither them not stream are usable with `with` since they lack the required methods.

Pull-Request: #1742
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/core/stream.nit