heh
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/util.rs b/src/util.rs
index b9d65b9..fba36d6 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -7,9 +7,9 @@ use std::{
pub mod prelude {
pub use super::{
- gcd, lcm, pa, GreekTools, IntoCombinations, IntoLines, IterͶ, NumTupleIterTools, ParseIter,
- Printable, Skip, TakeLine, TupleIterTools, TupleUtils, UnifiedTupleUtils, Widen, Ͷ, Α, Κ,
- Λ, Μ,
+ even, gcd, lcm, pa, GreekTools, IntoCombinations, IntoLines, IterͶ, NumTupleIterTools,
+ ParseIter, Printable, Skip, TakeLine, TupleIterTools, TupleUtils, UnifiedTupleUtils, Widen,
+ Ͷ, Α, Κ, Λ, Μ,
};
pub use itertools::izip;
pub use itertools::Itertools;
@@ -19,6 +19,7 @@ pub mod prelude {
fmt::{Debug, Display},
hint::black_box as boxd,
iter,
+ mem::transmute as rint,
ops::Range,
};
#[allow(unused_imports)]
@@ -338,6 +339,10 @@ macro_rules! ι {
ι!(u64);
ι!(usize);
+pub fn even(x: &usize) -> bool {
+ x % 2 == 0
+}
+
impl<T, I: Iterator<Item = T>> GreekTools<T> for I {
#[track_caller]
fn Δ(&mut self) -> T {