13 lines
212 B
Text
13 lines
212 B
Text
new_frontend
|
||
|
||
def c {α} : Sum α Nat :=
|
||
Sum.inr 10
|
||
|
||
def Sum.someRight {α β} (s : Sum α β) : Option β :=
|
||
match s with
|
||
| Sum.inl _ => none
|
||
| Sum.inr b => some b
|
||
|
||
#check Sum.someRight c
|
||
|
||
#eval Sum.someRight c
|