view examples/test1.rs @ 1:df9526623f04

Initial working version!
author Lewin Bormann <lbo@spheniscida.de>
date Thu, 15 Oct 2020 12:52:23 +0200
parents
children 0bc33bd08f39
line wrap: on
line source

use memoize::memoize;

#[memoize]
fn hello(a: i32) -> bool {
    println!("HELLO");
    a%2 == 0
}

fn main() {
    println!("result: {}", hello(32));
    println!("result: {}", hello(32));
}