Skip to content

Conversation

@jltrem
Copy link
Contributor

@jltrem jltrem commented Dec 23, 2024

EasyMonads.Core - new static partial class for convenience functions

  • Some(value) should be used when you expect the value to be non-null. It throws if null.
  • None gets implicitly converted to Maybe<T>
  • Maybe(value) constructs from a null or non-null value.

Maybe<T>

  • implemented IEquatable<T>
  • operators for == and !=
  • implicit operators for true, false, and bool

@jltrem jltrem force-pushed the jltrem/maybe-equality-and-core branch from 70a1533 to 4cae74a Compare December 23, 2024 18:25
@Jack-Edwards Jack-Edwards merged commit 0f9279c into Jack-Edwards:main Jan 2, 2025
1 check 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.

2 participants