Skip to content

Commit c97d0bd

Browse files
committed
Update builtin.{txt,jax}
1 parent f80fb10 commit c97d0bd

File tree

2 files changed

+40
-22
lines changed

2 files changed

+40
-22
lines changed

doc/builtin.jax

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Aug 12
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Aug 20
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -368,7 +368,7 @@ isinf({expr}) 数値 {expr}が無限大の値(正または負)かどうか
368368
を判定する
369369
islocked({expr}) 数値 {expr}がロックされているなら|TRUE|
370370
isnan({expr}) 数値 {expr}がNaNならば|TRUE|
371-
items({dict}) リスト {dict}のキーと値のペアを取得
371+
items({expr}) リスト {expr} のキーと値のペアを取得
372372
job_getchannel({job}) チャネル {job}のチャネルハンドルを取得
373373
job_info([{job}]) 辞書 {job}についての情報を取得
374374
job_setoptions({job}, {options}) なし {job}のオプションを設定する
@@ -6240,19 +6240,29 @@ isnan({expr}) *isnan()*
62406240
戻り値の型: |Number|
62416241

62426242

6243-
items({dict}) *items()*
6244-
{dict}の全要素のキー・値のペアからなるリストを返す。戻り値の各
6243+
items({expr}) *items()*
6244+
{expr} の全要素のキー・値のペアからなるリストを返す。戻り値の各
62456245
要素はリストであり、キーと値の2個の要素を持つ。戻り値のリスト
62466246
の要素の順序は不定である。|keys()| と |values()| も参照。
6247+
6248+
{expr} のすべてのキー/インデックスと値のペアを含む |List| を返
6249+
す。各 |List| の項目は 2 つの項目を持つリストである。
6250+
- |Dict| の場合: キーと値
6251+
- |List|、|Tuple| または |String| の場合: インデックスと値
6252+
返される |List| は、|Dict| の場合は任意の順序で返されるが、そ
6253+
れ以外の場合はインデックスの昇順になる。
6254+
6255+
|keys()| および |values()| も参照。
6256+
62476257
例: >
6258+
let mydict = #{a: 'red', b: 'blue'}
62486259
for [key, value] in items(mydict)
6249-
echo key .. ': ' .. value
6260+
echo $"{key} = {value}"
62506261
endfor
6262+
echo items([1, 2, 3])
6263+
echo items(('a', 'b', 'c'))
6264+
echo items("foobar")
62516265
<
6252-
|List|、|Tuple| または |String| 引数もサポートされている。こ
6253-
のようなケースでは、items() はインデックスとインデックスの値
6254-
を含むリストを返す。
6255-
62566266
|method| としても使用できる: >
62576267
mydict->items()
62586268
<
@@ -12769,6 +12779,8 @@ scrollbind 'scrollbind' をサポート (常に true)
1276912779
showcmd 'showcmd' をサポート
1277012780
signs |:sign|をサポート
1277112781
smartindent 'smartindent' をサポート。(常に true)
12782+
socketserver ソケットサーバー機能付きでコンパイルされている。(Unix
12783+
のみ)
1277212784
sodium libsodium ライブラリによるより良い暗号のサポート
1277312785
sound サウンド再生をサポート。例えば、`sound_playevent()`
1277412786
spell スペルチェックをサポート |spell|

en/builtin.txt

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Aug 12
1+
*builtin.txt* For Vim version 9.1. Last change: 2025 Aug 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -344,7 +344,7 @@ isinf({expr}) Number determine if {expr} is infinity value
344344
(positive or negative)
345345
islocked({expr}) Number |TRUE| if {expr} is locked
346346
isnan({expr}) Number |TRUE| if {expr} is NaN
347-
items({dict}) List key-value pairs in {dict}
347+
items({expr}) List key-value pairs in {expr}
348348
job_getchannel({job}) Channel get the channel handle for {job}
349349
job_info([{job}]) Dict get information about {job}
350350
job_setoptions({job}, {options}) none set options for {job}
@@ -6310,20 +6310,25 @@ isnan({expr}) *isnan()*
63106310
Return type: |Number|
63116311

63126312

6313-
items({dict}) *items()*
6314-
Return a |List| with all the key-value pairs of {dict}. Each
6315-
|List| item is a list with two items: the key of a {dict}
6316-
entry and the value of this entry. The |List| is in arbitrary
6317-
order. Also see |keys()| and |values()|.
6318-
Example: >
6313+
items({expr}) *items()*
6314+
Return a |List| with all key/index and value pairs of {expr}.
6315+
Each |List| item is a list with two items:
6316+
- for a |Dict|: the key and the value
6317+
- for a |List|, |Tuple| or |String|: the index and the value
6318+
The returned |List| is in arbitrary order for a |Dict|,
6319+
otherwise it's in ascending order of the index.
6320+
6321+
Also see |keys()| and |values()|.
6322+
6323+
Examples: >
6324+
let mydict = #{a: 'red', b: 'blue'}
63196325
for [key, value] in items(mydict)
6320-
echo key .. ': ' .. value
6326+
echo $"{key} = {value}"
63216327
endfor
6328+
echo items([1, 2, 3])
6329+
echo items(('a', 'b', 'c'))
6330+
echo items("foobar")
63226331
<
6323-
A |List|, a |Tuple| or a |String| argument is also supported.
6324-
In these cases, items() returns a List with the index and the
6325-
value at the index.
6326-
63276332
Can also be used as a |method|: >
63286333
mydict->items()
63296334
<
@@ -13042,6 +13047,7 @@ scrollbind Compiled with 'scrollbind' support. (always true)
1304213047
showcmd Compiled with 'showcmd' support.
1304313048
signs Compiled with |:sign| support.
1304413049
smartindent Compiled with 'smartindent' support. (always true)
13050+
socketserver Compiled with socket server functionality. (Unix only)
1304513051
sodium Compiled with libsodium for better crypt support
1304613052
sound Compiled with sound support, e.g. `sound_playevent()`
1304713053
spell Compiled with spell checking support |spell|.

0 commit comments

Comments
 (0)