Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

3.x: Swap Maybe.flatMapSingle and Maybe.flatMapSingleElement ? #6878

Closed
@akarnokd

Description

@akarnokd

Currently,flatMapSingle returnsSingle and signalsNoSuchElementException if the sourceMaybe is empty.flatMapSingleElement remainsMaybe.

I'd consider renamingflatMapSingle toflatMapSingleOrError andflatMapSingleElement toflatMapSingle as I think a defaultMaybe ->Maybe transformer should better match the other such transformers.

Alternatively, dropflatMapSingle and renameflatMapSingleElement toflatMapSingle so that the original behavior could be achieved viaflatMapSingle.toSingle()).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp