Skip to content

keys function is returning first pair for each hash instead of all keys #107

Open
@SmitaPatankar

Description

@SmitaPatankar

arr.append(self.map[i][0])

It is going to each hash location, checking if pairs exist and returning the 0th pairs.

It needs to go to each hash location, check if pairs exist and loop over each pair and return their 0th element i.e. the keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions