Skip to content

Add support for expand #207

@dickermoshe

Description

@dickermoshe

e.g.

class Foo:
  ...

class Bar:
  foo:Foo


bars = [Bar(), Bar(), Bar()]
foos =  Iter(bars).exapnd(lambda x: x.foo) # List of foos
print(foos)
 [Foo(), Foo(), Foo()]

Inspiration from https://api.dart.dev/stable/2.8.2/dart-core/Iterable/expand.html

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