File tree 2 files changed +14
-0
lines changed
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.
27
27
Accepts string input.
28
28
29
29
### :: Core
30
+ See [ List of operators] ( ./syntax.md#list-of-operators ) for operator-equivalent functions.
30
31
31
32
#### #Core: v
32
33
Type: ` str `
@@ -38,6 +39,12 @@ Get the type name of the value.
38
39
#### @Core : to_str (_ v_ : any): str
39
40
Obtains a string representing a value.
40
41
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
+
41
48
#### @Core : sleep (_ time_ : num): void
42
49
Wait for the specified time (milliseconds).
43
50
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ standardを省略してstd定数/関数とも呼ばれています。
26
26
文字列の入力を受け付けます。
27
27
28
28
### :: Core
29
+ 演算子系関数については[ 演算子一覧] ( ./syntax.md#演算子一覧 ) を参照してください。
29
30
30
31
#### #Core: v
31
32
型: ` str `
@@ -37,6 +38,12 @@ AiScriptのバージョンです。
37
38
#### @Core : to_str (_ v_ : any): str
38
39
値を表す文字列を取得します。
39
40
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
+
40
47
#### @Core : sleep (_ time_ : num): void
41
48
指定時間(ミリ秒)待機します。
42
49
You can’t perform that action at this time.
0 commit comments