//! Minimal before/after: hand-written vs oql! for a trivial filter+map.
//!//! Run with `cargo expand --example simple_compare` to see the expanded
//! form of the oql invocation side-by-side with the hand-written version.
useoql::oql;fnplain(nums:Vec<i32>)->Vec<i32>{
nums.into_iter().filter(|n|*n >2).map(|n|n *10).collect()}fnwith_oql(nums:Vec<i32>)->Vec<i32>{oql!{
from n in nums
where n >2let tentimes = n *10
select tentimes
}.collect()}fnmain(){let xs =vec![1,2,3,4,5];let a =plain(xs.clone());let b =with_oql(xs);assert_eq!(a, b);println!("{:?}", a);}