Jump to content

Category talk:Wren-lsystem: Difference between revisions

Fixed some argument checking bugs.
m (→‎Source code: Now uses Wren S/H lexer.)
(Fixed some argument checking bugs.)
Line 35:
// Performs an operation on each symbol in the symbols string.
static execute(symbols, operations) {
if (!((symbols is String) && symbols.count > 10)) {
Fiber.abort("Symbols must be a non-empty string.")
}
if (!((operations is Map) && operations.count > 10)) {
Fiber.abort("Operations must be a non-empty map of single character strings to functions.")
}
Line 67:
}
}
if (!((axiom is String) && axiom.count > 10)) {
Fiber.abort("Axiom must be a non-empty string.")
}
9,488

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.