File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ Displays a string on the screen.
2727Accepts string input.
2828
2929### :: Core
30+ See [ List of operators] ( ./syntax.md#list-of-operators ) for operator-equivalent functions.
3031
3132#### #Core: v
3233Type: ` str `
@@ -38,6 +39,12 @@ Get the type name of the value.
3839#### @Core : to_str (_ v_ : any): str
3940Obtains a string representing a value.
4041
42+ #### @Core : range (_ a_ : num, _ b_ : num): ` arr<num> `
43+ Generates a sequence of numbers starting from _ a_ and ending in _ b_ .
44+ Increments by 1 when ` a < b ` , decrements by 1 when ` a > b ` .
45+ Returns ` [a] ` when ` a == b ` .
46+ Behavior is not defined when ` a ` and/or ` b ` is non-integer.
47+
4148#### @Core : sleep (_ time_ : num): void
4249Wait for the specified time (milliseconds).
4350
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ standardを省略してstd定数/関数とも呼ばれています。
2626文字列の入力を受け付けます。
2727
2828### :: Core
29+ 演算子系関数については[ 演算子一覧] ( ./syntax.md#演算子一覧 ) を参照してください。
2930
3031#### #Core: v
3132型: ` str `
@@ -37,6 +38,12 @@ AiScriptのバージョンです。
3738#### @Core : to_str (_ v_ : any): str
3839値を表す文字列を取得します。
3940
41+ #### @Core : range (_ a_ : num, _ b_ : num): ` arr<num> `
42+ _ a_ から始まり _ b_ で終わる数値の等差配列を返します。
43+ ` a < b ` なら1ずつ増え、` a > b ` なら1ずつ減ります。
44+ ` a == b ` であれば` [a] ` を返します。
45+ ` a ` および` b ` が非整数であるときの動作は未定義です。
46+
4047#### @Core : sleep (_ time_ : num): void
4148指定時間(ミリ秒)待機します。
4249
You can’t perform that action at this time.
0 commit comments