mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Basic subscripting for Kal
This commit is contained in:
@@ -679,7 +679,7 @@ impl<'a> std::fmt::Display for PrettyVal<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
fn number_to_index(x: f64) -> Option<usize> {
|
||||
pub fn number_to_index(x: f64) -> Option<usize> {
|
||||
if x < 0_f64 || x != x.floor() {
|
||||
return None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user