Skip to content

kroltan/sleepdrifter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sleepdrifter

Lazy evaluation library for Rust

Examples

Calculating the root-mean-square:

let a = lazy(34.2);
let b = lazy(25.6);

let rms = ((a + b) / lazy(2.0)).map(f32::sqrt);

println!("{}", rms.evaluate());

Parameter usage:

let (a, setter) = Parameter::empty();
let b = lazy(25.6);

let rms = ((a + b) / lazy(2.0)).map(f32::sqrt);

setter.set(34.2);

println!("{}", rms.evaluate());

About

Lazy evaluation library for Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages