marqdo

Maps (horizontal tables)ok

structure/07-map.mq.md

文档

main

说明

A multi-column table with one data row is a map. Read values with [key](map).

kinds =
applecucumber
fruitvegetable
k =appleaccess(kinds, "apple")
> print text=k
k =cucumberaccess(kinds, "cucumber")
> print text=k
Functions
Variables
  • description text
    Multi-column tables are maps; link-index get
  • k text
    vegetable
  • kinds map · 2
    applefruit
    cucumbervegetable
  • markup text
    occlusion
  • title text
    Maps (horizontal tables)
可执行知识(辅助)

运行与结果

fruit vegetable
完整源码
---
markup: occlusion
title: Maps (horizontal tables)
description: Multi-column tables are maps; link-index get
---

# main

A multi-column table with one data row is a map. Read values with `[key](map)`.

`kinds` =

| apple | cucumber |
|-------|----------|
| fruit | vegetable |

**`k` = [apple](access(kinds, "apple"))**

> print text=`k`

**`k` = [cucumber](access(kinds, "cucumber"))**

> print text=`k`

Variable