Mark型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A mark: the cell at less holds a smaller number than the cell at more. Both are indexes, always adjacent.
インポート
import type { Mark } from "@johnmorrisdotca/kazu";
定義
type Mark = {
less: number;
more: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
less | number | |
more | number |
例
import { decodeMoreOrLess } from "@johnmorrisdotca/kazu";
import type { Mark } from "@johnmorrisdotca/kazu";
const inequalities = decodeMoreOrLess("1.........2......>...>...........^......",4)!;
const value: Mark = inequalities.marks[0];
console.log(value);{ less: 2, more: 1 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。