pub mod comp; pub mod gc; pub mod matrix; pub mod hash; pub mod exception; pub mod function; pub mod fmt; pub mod index; pub mod clone; use crate::prelude::*; #[derive(Clone)] pub enum Value { Nil, Bool(bool), Int(i64), Float(f64), Ratio(Rational64), Complex(Complex64), Regex(Rc), String(Rc), List(Gc>), Matrix(Gc), Table(Gc), Function(Rc), Range(Rc<(i64, i64, bool)>), Iter(Rc), File(Rc>), Exception(Exception), } impl From<&str> for Value { fn from(value: &str) -> Self { Value::String(Rc::from(value)) } }