# Bidrectional iterators [![Build Status](https://travis-ci.org/sbillig/bidir_iter.svg?branch=master)](https://travis-ci.org/sbillig/bidir_iter) [![Documentation](https://docs.rs/bidir_iter/badge.svg)](https://docs.rs/bidir_iter) ```rust use bidir_iter::*; let a: &[i64] = &[1, 2, 3]; let mut iter = a.bidir_iter(); assert_eq!(iter.next(), Some(&1)); assert_eq!(iter.next(), Some(&2)); assert_eq!(iter.next(), Some(&3)); assert_eq!(iter.prev(), Some(&2)); assert_eq!(iter.prev(), Some(&1)); assert_eq!(iter.prev(), None); assert_eq!(iter.next(), Some(&1)); ```