meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
z0ne.maybe:start [2022-05-05 14:49]
Kura
z0ne.maybe:start [2022-05-05 14:50]
Kura
Line 95: Line 95:
 var d = maybe.UnwrapOrElse(() => 1); var d = maybe.UnwrapOrElse(() => 1);
  
-// get the inner value, or create a new instance (only when the inner type is a class with a new() constructor)+// get the inner value, or create a new instance (only available when the inner type is a class with a new() constructor)
 var e = maybe.UnwrapOrNew(); var e = maybe.UnwrapOrNew();
 </code> </code>