mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-14 11:16:17 +01:00
[no version bump yet] better and safer stdlib impl
only transformed configs/with_string so far, but other configs/* should follow soon. also, this will help with implementing new stdlib functions in the future.
This commit is contained in:
@@ -30,7 +30,7 @@ fn run(src: String) -> Result<(), CheckError> {
|
||||
)
|
||||
.add_var(
|
||||
"rust_func".to_owned(),
|
||||
Data::new(data::function::Function::new(
|
||||
Data::new(data::function::Function::new_generic(
|
||||
|arg| {
|
||||
// If the input is a string, the output is a string.
|
||||
// Otherwise, the function is used incorrectly.
|
||||
|
||||
Reference in New Issue
Block a user