1

more examples

This commit is contained in:
Christoph
2021-09-02 18:26:10 +02:00
parent 4e41cdc724
commit b31f5cab6d
2 changed files with 15 additions and 0 deletions

12
examples/numbers.simple Normal file
View File

@ -0,0 +1,12 @@
def function(n):
n
def generate_list(n):
list = ""
i = 1
while i < n:
list += function(i) tostr
list += " "
i++
list += function(n) tostr
list

View File

@ -0,0 +1,3 @@
def rotate(str, n):
l = str len
str substr(n, l) + str substr(0, n)