-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
enhancementNew feature or requestNew feature or request
Description
参照系
-
@(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
FineArchs
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request