Closed am-cid closed 4 months ago
isArray() returns true for all array types, false for everything else
isArray()
len-chan()
Int
Float
Bool
a-chan = 100~ a.len()~ >.< 0 a-kun = 10.0~ a.len()~ >.< 0 a-sama = fax~ a.len()~ >.< 0
reverse-san()
fax
cap
String
a-chan = 100~ a.reverse()~ >.< 1 a-kun = 10.0~ a.reverse()~ >.< 0.01 a-sama = fax~ a.reverse()~ >.< cap
append-san()
has-sama()
a-chan = 100~ a.has(10)~ >.< fax a-kun = 10.0~ a.has(10)~ >.< fax a-sama = fax~ a.has(10)~ >.< cap
clear-san()
0
count-chan()
a-chan = 100~ a.count(0)~ >.< 2 a-kun = 10.0~ a.has(1)~ >.< 1 a-sama = fax~ a.has(2)~ >.< 0
extend-san()
index-chan()
pop-san()
prepend-san()
prextend-san()
going to do another solution, closing this
isArray()
returns true for all array types, false for everything elselen-chan()
Int
,Float
, andBool
reverse-san()
Int
,Float
: converts to string, reverses the string, then converts back toInt
/Float
Bool
: turnsfax
tocap
, and vice versaString
: reverses the underlying stringappend-san()
Int
,Float
,Bool
String
: takes inString
; concats the given item to the underlying stringhas-sama()
Int
,Float
, andBool
clear-san()
Int
,Float
: turns val to0
Bool
: turns val tocap
String
: turns underlying string to an empty stringcount-chan()
Int
,Float
, andBool
extend-san()
Int
,Float
,Bool
String
: takes inString
; concats the given item to the underlying stringindex-chan()
Int
,Float
, andBool
pop-san()
Int
,Float
,Bool
String
: takes inString
; removes the last character from the underlying stringprepend-san()
Int
,Float
,Bool
String
: takes inString
; prepends the given item to the underlying stringprextend-san()
Int
,Float
,Bool
String
: takes inString
; prepends the given item to the underlying string