#macro #iterator #comprehension #syntax #range #implemented

rust-iteratorcomprehensions

A comprehension syntax for iterators implemented as macros

4 releases

Uses old Rust 2015

0.3.4 Jan 7, 2015
0.3.3 Jan 6, 2015
0.3.2 Dec 25, 2014
0.3.1 Nov 20, 2014

#16 in #comprehension

29 downloads per month

MIT license

9KB
264 lines

rust-iteratorcomprehensions

A comprehension syntax for rust's Iterators.

iterator!( i * j for i in range(0,3) for j in range(0, i + 1) )

Build Status

Build Status


lib.rs:

This module provides the syntax extension iterator!() that enables mapping, filtering and nesting of iterators using a comprehension syntax.

No runtime deps