文档中的步骤
结构步骤(非实际执行时序)
callprintcallgreet → mq://public/structure%2F02-function/function/main/greet
marqdo
Use # / ## for functions. Parameters are bare - name lines under the heading.
Call with > and named args param=value:
结构步骤(非实际执行时序)
call printcall greet → mq://public/structure%2F02-function/function/main/greetmq://public/structure%2F02-function/function/main/greet(who: any) → anysha256:bef88f56d472f… (未检查锁定状态)none---
markup: occlusion
title: Functions and named calls
description: `#` defines functions; `>` calls; `-` lists parameter names
---
# main
Use `#` / `##` for functions. Parameters are bare `- name` lines under the heading.
Call with `>` and named args `param=value`:
> greet who=World
## greet
+ `who`
> print text=Hello `who`!