thag_rs 0.2.1

A versatile cross-platform playground and REPL for Rust snippets, expressions and programs. Accepts a script file or dynamic options.
Documentation
1
2
3
4
5
6
7
/// Very simple demo of the `unzip` iterator function.
//# Purpose: Demo
//# Categories: technique
let (v, r): (Vec<i32>, Vec<i32>) = (-1..13).map(|x| (x, x * x)).unzip();

println!("v={v:#?}");
println!("r={r:#?}");