- Support dart 3.0
- Add
isSome
getterisNone
gettermap
functionthen
functonand
functionflatMap
functionandThen
functionor
functionorElse
functionxor
functionflatten
function
Full Rewrite
now
Some(1) != 1
None() == None()
Fix lib/src/maybe.dart. (-0.50 points)
Analysis of lib/src/maybe.dart reported 1 hint:
line 28 col 28: Avoid types as parameter names.
Fix lib/src/none.dart. (-0.50 points)
Analysis of lib/src/none.dart reported 1 hint:
line 18 col 28: Avoid types as parameter names.
Fix lib/src/null.dart. (-0.50 points)
Analysis of lib/src/null.dart reported 1 hint:
line 12 col 44: Avoid types as parameter names.
Rewritten implementation
Fix bug: eq
Some(1) != 1
now
Some(1) == 1
Add eq test
remove const None
Fix bug: const None is not Maybe
Fix bug(null.dart
): defaultVal
and defaultValFn
when Some
while return None
Fix bug: defaultVal
and defaultValFn
when Some
while return None
const None
Add const constructor
Add example
Create this