--- a/crates/jrsonnet-stdlib/src/strings.rs +++ b/crates/jrsonnet-stdlib/src/strings.rs @@ -50,6 +50,10 @@ Ok(str.to_ascii_lowercase()) } +pub fn repeat(what: Either![IStr, ArrValue], count: i32) { + joi +} + #[builtin] pub fn builtin_find_substr(pat: IStr, str: IStr) -> Result { if pat.is_empty() || str.is_empty() || pat.len() > str.len() { @@ -89,7 +93,7 @@ parse_nat::<10>(raw.as_str()) } } else { - throw!("Empty decimal integer \"{}\"", raw); + throw!("Empty decimal integer",); } } @@ -145,7 +149,7 @@ if digit < BASE { Ok(base * aggregate + digit as f64) } else { - throw!("\"{raw}\" is not a base {BASE} integer",); + throw!("{raw:?} is not a base {BASE} integer",); } }) }