Skip to content

Operators: preserve type alias #163

@samber

Description

@samber

Example:

// Current:
func Flatten[T any]() func(Observable[[]T]) Observable[T]

// Updated:
func Flatten[T any, Slice ~[]T]() func(Observable[Slice]) Observable[T]

In tests:

type collection []int
s1 := collection{1, 2, 3}
s2:= collection{4, 5, 6}

ro.Pipe1(
    ro.Just(s1, s2)
    ro.Flatten(),
)

Also update the contributing guide + the prototypes in docs/data/

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreChanges affecting the core logic or main components of the project, in root/internal/testing pkgdocumentationImprovements, corrections, or additions to documentation: markdowns, readme, docs/ website....enhancementRequest or implementation of a new feature or improvement.operatorRelated to Operator logic or components (chainable transformation in reactive programming)pluginDevelopment or maintenance of a plugin or extension in plugins/ directory.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions