lib.rs (107B)
1 #[rustler::nif] 2 fn add(a: i64, b: i64) -> i64 { 3 a + b 4 } 5 6 rustler::init!("Elixir.Genetic.Tree", [add]);