Files
marqdo/tests/structure/collection-cell-expr.mq.md
T
cflmyandCursor ac3f0633cd refactor(tests): prefer link-index in structure collection golds
Move collection-* structure fixtures to [key](base), and modernize
public/stdlib table/fs/time demos with bracket-marked library calls.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 13:03:03 +08:00

46 lines
669 B
Markdown

---
title: table cell expressions
description: Data cells evaluate like call-arg values (`var`, paths, hyphen prose).
---
# main
**secret = "sk-live"**
**name = "gpt-4o-mini"**
`cfg` =
| api_key | model | base |
|---------|-------|------|
| `secret` | `name` | https://api.openai.com/v1 |
> print text=[api_key](`cfg`)
> print text=[model](`cfg`)
> print text=[base](`cfg`)
`paths` =
| p |
|---|
| /chat/completions |
> print text=[1](`paths`)
`rec` =
| @ | role | content |
|---|------|---------|
| 1 | user | `secret` |
> print text=[content]([1](`rec`))
`ratios` =
| r |
|---|
| "1/5" |
| "16/9" |
> print text=[1](`ratios`)
> print text=[2](`ratios`)