syntax.function_keyword
Function declared with fn, func, def or fun.
Area 3, Logic; not declinable; the next step is usually the agent's.
A function starts with function, not fn, func, def or fun.
type Count = Int { min: 0}fn same(count: Count) -> Count { return count}
error Jadpo writes function, not fn
--> main.jadpo:5:1
|5 | fn same(count: Count) -> Count { | ^^ write `function`
- reason
fndeclares a function in Rust; Jadpo starts one withfunction, oractionwhen it reads or writes stored data.- next
- Use
functioninstead offn(agent) - rule
- syntax.
function_ keyword - help
- https://jadpo.
dev/docs/errors/syntax. function_ keyword
Markdown for agents: /docs/errors/syntax.function_keyword.md.Built from Jadpo main at aee2e8f.