Basic subscripting for Kal

This commit is contained in:
Andrew Morris
2023-07-01 16:33:11 +10:00
parent 98441e8070
commit 530c025864
2 changed files with 65 additions and 7 deletions

View File

@@ -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;
}