1

implement string

This commit is contained in:
Christoph
2021-08-13 16:39:23 +02:00
parent 5b32c4bcd6
commit 080d932d56
11 changed files with 200 additions and 45 deletions

View File

@ -34,6 +34,8 @@ object inttrait:
def tobool:
self $int_tobool
def tostr:
self $int_tostr
# Project: Boolean
object booltrait:
@ -46,3 +48,21 @@ object booltrait:
def toint:
self $bool_toint
def tostr:
self $bool_tostr
# Project: String
object strtrait:
def eq(other):
self $str_eq(other)
def add(other):
self $str_add(other)
def rev:
self $str_rev
def len:
self $str_len
def tobool:
self $str_tobool
def toint:
self $str_toint