ftools 0.1.1

Functional utilities for Rust
Documentation
  • Coverage
  • 0%
    0 out of 10 items documented0 out of 5 items with examples
  • Size
  • Source code size: 14.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • y2kappa/functools
    2 1 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • y2kappa

Functools

Collection of functional utilities for Rust.

let xs = vec![1, 2, 3];
let ys = vec![4, 5, 6];

assert_eq!(vector::zip_with(xs, ys, |x, y| x + y), vec![5, 7, 9]);
let xs = vec![1, 3, 5, 7, 9];
let is_odd = |x| x % 2 != 0;

assert_eq!(truth::all(&xs, is_odd), true)

Async pipe. Instead of:

let x = f(1).await;
let y = g(x).await;
let z = h(y).await;

you can do:

let x = pipe!(1 => f => g => h);