foreach
This commit is contained in:
parent
a1ee060287
commit
e0a80b4e2d
1 changed files with 7 additions and 0 deletions
|
@ -109,6 +109,13 @@ def TYPE_JIO "jio" mktype =TYPE_JIO
|
||||||
} TYPE_JIO defmethod
|
} TYPE_JIO defmethod
|
||||||
def JIO 0 TYPE_JIO settype =JIO
|
def JIO 0 TYPE_JIO settype =JIO
|
||||||
|
|
||||||
|
"foreach" {
|
||||||
|
def this =this
|
||||||
|
def lambda =lambda
|
||||||
|
def i 0 =i
|
||||||
|
while { i this alen lt } { lambda fcall i ++ =i }
|
||||||
|
} TYPE_ARRAY defmethod
|
||||||
|
|
||||||
func _string {
|
func _string {
|
||||||
def object =object
|
def object =object
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue