radicalGroups関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The grid: the radicals in stroke-count order, grouped by the count, in the order they were given within a count.
インポート
import { radicalGroups } from "@johnmorrisdotca/bushu";
定義
function radicalGroups(radicals: readonly Radical[]): RadicalGroup[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
radicals | readonly Radical[] | The native radical entries; these inputs are read without mutation. |
戻り値
RadicalGroup[]
The grid: the radicals in stroke-count order, grouped by the count, in the order they were given within a count.
例
import { RADKFILE } from "@johnmorrisdotca/bushu/radkfile";
import { radicalGroups } from "@johnmorrisdotca/bushu";
const radicals = RADKFILE.radicals;
console.log(radicalGroups(radicals).slice(0,2).map(group=>[group.strokes,group.radicals.length]));[ [ 1, 6 ], [ 2, 31 ] ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。