mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: make map.keys() public
This commit is contained in:
parent
ace9444108
commit
7ea57bfa1e
@ -602,7 +602,7 @@ pub fn (mut m map) delete(key voidptr) {
|
||||
}
|
||||
|
||||
// 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 item := unsafe { &byte(keys.data) }
|
||||
if m.key_values.deletes == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user