flowflow を試す ↗flow を試す ↗ (opens in a new tab)インストールインストール
GitHubGitHub (opens in a new tab)
  • Introduction
  • 構文
    • flow の基本構文
    • 参照
    • 糖衣構文
    • 橋
    • データ構造
    • カスタムノードの定義 (Experimental)
  • リファレンス
    • 組み込みノード
  • flow の今後
  • Introduction
  • 構文
    • flow の基本構文
    • 参照
    • 糖衣構文
    • 橋
    • データ構造
      • 配列
      • ペア
    • カスタムノードの定義 (Experimental)
  • リファレンス
    • 組み込みノード
  • flow の今後
  • flow を試す ↗ (opens in a new tab)
  • インストール

On This Page

  • 配列
  • ペア
Question? Give us feedback → (opens in a new tab)Edit this page
構文
データ構造

データ構造

flow では、配列とペアを現状サポートしています。

配列

例:

> [1, 2, 3] -> map -> * 2 -> unmap -> output
[2, 4, 6].

ペア

ペアは、タプルの限定版で、2 つの要素からなります。

> (1, 2) -> unpair (fst:-> + 2 ->) (snd:-> - 1 ->) pair -> output
(3, 1).
橋カスタムノードの定義 (Experimental)

Created by flow-org ♥ Nextra