This method gives us an iterator over items in a resource.
This method gives us an iterator over items in a resource.
The resource we plan to traverse through
Executes a given function against all items in the resource.
Executes a given function against all items in the resource. The resource is opened/closed during the call to this method.
This method is called if an exception happens during traversal of the collection.
This method is called if an exception happens during traversal of the collection. We allow subclasses to override this to change the default behavior of resource related errors on traversal.
This method determines if the error can be ignored and traversable continues
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
This trait provides a means to ensure traversable access to items inside a resource, while ensuring that the resource is opened/closed appropriately before/after the traversal. This class can be dangerous because it always tries to open and close the resource for every call to foreach. This is practically ever method call on a Traversable besides the "view" method.