Repository navigation
switch式
#16
Replies: 2 comments 2 replies
|
構文どんなのにするか var result = switch(item)
{
"First" => 1,
"Second" => 2,
default => 0
}みたいな |
2 replies
var a = match(item)
{
"A" => 1
}defalut 2;みたいな? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Kotlinのwhen式的な
@rokuosan
All reactions