implement string
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user