Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
737 B
737 B
markup, title, description, import
| markup | title | description | import | ||||||
|---|---|---|---|---|---|---|---|---|---|
| occlusion | Mid stdlib — lists and cli | table sort/unique/zip + cli.parse (Mid M5) |
|
Sort CSV rows and parse flags
Zero plugins: parse CSV, sort by key, parse --input.
main
raw = "name,score\nbob,2\nalice,10\n"
rows = > csv.parse text=raw
rows = > table.sort_by list=rows key="name"
r0 = > at value=rows index=0
print text=name)
args = > split value="--input,scores.csv,--pretty" sep=","
flags = > cli.parse args=args
print text=input)
print text=mid-m5-ok
print text=mid-m5-fail