We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参考
@(v: arr).at(index: num): value
@(v: arr).every(func: @(item: value, index: num){ bool }): bool
@(v: arr).some(func: @(item: value, index: num){ bool }): bool
@(v: arr).splice(index: num, remove_count: num, items: arr): arr
@(v: arr).insert(index: num, item: value): null
@(v: arr).remove(index: num): value
@(v: arr).insert_range(index: num, items: arr): null
@(v: arr).remove_range(index: num, count: num): arr
@(v: arr).flat(depth=1): arr
The text was updated successfully, but these errors were encountered:
No branches or pull requests
参考
参照系
@(v: arr).at(index: num): value
添え字アクセス。indexが負の時は末尾からの位置指定。範囲外はnullを返す。
cf. 配列で負のインデックス指定時、末尾からの順番で要素を取得するようにする #514
arr.atを追加 #661
走査系
@(v: arr).every(func: @(item: value, index: num){ bool }): bool
@(v: arr).some(func: @(item: value, index: num){ bool }): bool
arr.every、arr.someを追加 #620
変更系
@(v: arr).splice(index: num, remove_count: num, items: arr): arr
破壊的。返値は削除された要素の配列。
arr.spliceを追加 #621
@(v: arr).insert(index: num, item: value): null
@(v: arr).remove(index: num): value
破壊的。返値は削除された値。
arr.insertとarr.removeを追加 #654
@(v: arr).insert_range(index: num, items: arr): null
@(v: arr).remove_range(index: num, count: num): arr
破壊的。返値は削除された要素の配列。
cf. 配列の要素を添字指定して挿入・削除 #267
他
@(v: arr).flat(depth=1): arr
depth: 均す深さ
arr.flat、arr.flat_mapを追加 #622
The text was updated successfully, but these errors were encountered: