mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
add []u64.str()
This commit is contained in:
parent
be0796ce14
commit
a27165f07e
@ -220,6 +220,18 @@ pub fn (a []int) str() string {
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn (a []u64) str() string {
|
||||
mut res := '['
|
||||
for i := 0; i < a.len; i++ {
|
||||
val := a[i]
|
||||
res += '$val'
|
||||
if i < a.len - 1 {
|
||||
res += ', '
|
||||
}
|
||||
}
|
||||
res += ']'
|
||||
return res
|
||||
}
|
||||
//pub fn (a []int) free() {
|
||||
pub fn (a array) free() {
|
||||
//if a.is_slice {
|
||||
|
Loading…
Reference in New Issue
Block a user