Skip to content

refactor(pipe_adaptor): rename callable to identity#36

Merged
msvetkin merged 1 commit intomainfrom
msvetkin/refactor/pipe-adaptor-identity
Apr 15, 2026
Merged

refactor(pipe_adaptor): rename callable to identity#36
msvetkin merged 1 commit intomainfrom
msvetkin/refactor/pipe-adaptor-identity

Conversation

@msvetkin
Copy link
Copy Markdown
Collaborator

The accessor that returns the stored argument unchanged is now named identity(), after the identity function id(x) = x.

This name holds for all operations:

  • for and_then/transform/or_else/transform_error the stored argument is a callable.
  • for value_or it will be a plain value.

In both cases the accessor simply returns what was stored, unchanged.

The accessor that returns the stored argument unchanged is now named
identity(), after the identity function id(x) = x.

This name holds for all operations:
- for and_then/transform/or_else/transform_error the stored argument is a callable.
- for value_or it will be a plain value.

In both cases the accessor simply returns what was stored, unchanged.
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — msvetkin/refactor/pipe-adaptor-identity into main

@msvetkin msvetkin merged commit a7a2643 into main Apr 15, 2026
85 checks passed
@msvetkin msvetkin deleted the msvetkin/refactor/pipe-adaptor-identity branch April 15, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants