Skip to content

feat: add operator keyword to contains for in syntax#41

Merged
mrmans0n merged 1 commit intomainfrom
feature/contains-operator
Feb 10, 2026
Merged

feat: add operator keyword to contains for in syntax#41
mrmans0n merged 1 commit intomainfrom
feature/contains-operator

Conversation

@mrmans0n
Copy link
Owner

Adds operator to contains so it supports the Kotlin in operator.

val result: AsyncResult<Int> = Success(42)
if (42 in result) { ... }

Also adds tests for the in syntax.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-02-10 09:15 UTC

Enables 'value in result' syntax, e.g. '42 in Success(42)' returns true.
@mrmans0n mrmans0n force-pushed the feature/contains-operator branch from 9b2d72d to c3754a7 Compare February 10, 2026 09:07
@mrmans0n mrmans0n merged commit 71c0fdb into main Feb 10, 2026
3 checks passed
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.

1 participant