-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't workinglangAIScript Language SyntaxAIScript Language Syntax
Description
// string_helper.ai
pub fn pluralize(word: str) -> str {
// Simple pluralization logic
if word.ends_with("s") {
return word + "es";
}
return word + "s";
}
print(pluralize("apple")); // Undefined variable 'print'.// hello.ai
// Import your module
use string_helpers;
let word = "apple";
let plural = string_helpers.pluralize(word);
print(plural); // "apples"We run cargo run hello.ai get "Undefined variable 'print'` error.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglangAIScript Language SyntaxAIScript Language Syntax