We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
?
dla x : Result[int,string] wyrażenie:
x : Result[int,string]
val foo = x ? "błąd"
w przypadku gdy x is Just powinno deklarować foo z wartością 5, a w przypadku gdy x is Err powinno zwracać z całej funkcji Err("błąd").
x is Just
x is Err
Err("błąd")
Możliwe jest pominięcie wartości błędu "błąd" i wówczas zwrócony zostanie bład z Err:
"błąd"
Err
val foo = x?
Wymagania:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
dla
x : Result[int,string]
wyrażenie:val foo = x ? "błąd"
w przypadku gdy
x is Just
powinno deklarować foo z wartością 5, a w przypadku gdyx is Err
powinno zwracać z całej funkcjiErr("błąd")
.Możliwe jest pominięcie wartości błędu
"błąd"
i wówczas zwrócony zostanie bład zErr
:Wymagania:
The text was updated successfully, but these errors were encountered: