Sudhir Singh Khanger
09/17/2018, 2:20 PMfun isFavorite(otherIceCream: IceCream) = iceCream == otherIceCream
What is going on in this syntax? We have one equality operator and another is assignment.fred.deschenes
09/17/2018, 2:22 PMfun isFavorite(other: IceCream) {
return iceCream == otherIceCream
}
Daniel Domberger
09/17/2018, 2:37 PM=>
in this case which makes it a bit clearer imho. Would look like this in your example:
fun isFavorite(otherIceCream: IceCream) =>
iceCream == otherIceCream
Sudhir Singh Khanger
09/17/2018, 5:02 PMiceCream == otherIceCream
Does this mean return true if they are equal or false otherwise.fred.deschenes
09/17/2018, 5:10 PM