Skip to main content
Commonmark migration
Source Link

#Scala, 43 bytes

Scala, 43 bytes

def f(a:Int,b:Int)=a+b==5|(a-b).abs==5|a==b

Try it online!

#Scala, 43 bytes

def f(a:Int,b:Int)=a+b==5|(a-b).abs==5|a==b

Try it online!

Scala, 43 bytes

def f(a:Int,b:Int)=a+b==5|(a-b).abs==5|a==b

Try it online!

deleted 2 characters in body
Source Link

#Scala, 4543 bytes

def f(a:Int,b:Int)=a+b==5||=a+b==5|(a-b).abs==5||a==babs==5|a==b

Try it online!

#Scala, 45 bytes

def f(a:Int,b:Int)=a+b==5||(a-b).abs==5||a==b

Try it online!

#Scala, 43 bytes

def f(a:Int,b:Int)=a+b==5|(a-b).abs==5|a==b

Try it online!

Source Link

#Scala, 45 bytes

def f(a:Int,b:Int)=a+b==5||(a-b).abs==5||a==b

Try it online!