builtin: make map.keys() public
parent
ace9444108
commit
7ea57bfa1e
|
@ -602,7 +602,7 @@ pub fn (mut m map) delete(key voidptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns all keys in the map.
|
// Returns all keys in the map.
|
||||||
fn (m &map) keys() array {
|
pub fn (m &map) keys() array {
|
||||||
mut keys := __new_array(m.len, 0, m.key_bytes)
|
mut keys := __new_array(m.len, 0, m.key_bytes)
|
||||||
mut item := unsafe { &byte(keys.data) }
|
mut item := unsafe { &byte(keys.data) }
|
||||||
if m.key_values.deletes == 0 {
|
if m.key_values.deletes == 0 {
|
||||||
|
|
Loading…
Reference in New Issue