encodeWalls関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The walls as a layout writes them, after the cells: nothing where there are none.
インポート
import { encodeWalls } from "@johnmorrisdotca/tsunagi";
定義
function encodeWalls(walls: Iterable<string>): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
walls | Iterable<string> | The blocked undirected edges as a-b strings. |
戻り値
string
The walls as a layout writes them, after the cells: nothing where there are none.
例
import { encodeWalls } from "@johnmorrisdotca/tsunagi";
console.log(encodeWalls(new Set(["1-2","1-5"])));|1-2,1-5出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。