Skip to content

Using map() or filter() where list comprehension is possible #132

Description

@drsasa

Generally this section is misleading.

I understand what writer wanted to say but its not correct.

map() returns an iterator not list. Therefore in text on few places is mentioned that map()
returns list.

Therefore use case for map over list comprehension is let's say bit different and with map
can be more memory efficient.

I'm just pointing out, so that section can be bit adjusted, but rest standing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions