syntax.inline_function_arrow
Inline function written in another language's form.
Area 3, Logic; not declinable; the next step is usually the agent's.
An inline function is item -> expression.
type TodoTitle = Text { max_length: 200}type Todo = Object { title: TodoTitle}function titles(todos: List<Todo>) -> List<TodoTitle> { return list.map(todos, todo => todo.title)}
error Jadpo writes todo -> todo.title, not todo => todo.title
--> main.jadpo:10:28
|10 | return list.map(todos, todo => todo.title) | ^^^^^^^ write `todo -> todo.title`
- reason
x => eis an arrow function in JavaScript, TypeScript and C#,lambda x: ein Python and|x| ein Rust; a Jadpo inline function isitem -> expression.- next
- Write
todo -> todo.title(agent) - rule
- syntax.
inline_ function_ arrow - help
- https://jadpo.
dev/docs/errors/syntax. inline_ function_ arrow
Markdown for agents: /docs/errors/syntax.inline_function_arrow.md.Built from Jadpo main at aee2e8f.