1
This commit is contained in:
Christoph
2021-09-02 18:26:59 +02:00
parent cf92bc7804
commit 81e2dd0745
4 changed files with 14 additions and 8 deletions

View File

@ -173,6 +173,11 @@ def simple_str_add(a, b):
return a + b
@primitive("str_subs", [str, int, int], str)
def simple_str_subs(a, s, e):
return a[s:e]
@primitive("str_rev", [str], str)
def simple_str_eq(a):
return a[::-1]