randomforestwhitaker / questions

questions
0 stars 0 forks source link

x is shadowed #6

Closed adampingel closed 6 years ago

adampingel commented 6 years ago

https://github.com/randomforestwhitaker/questions/blob/a607680fed8c614a478260e329b4412a57112903/answer_1.scala#L30

You can delete this line because you never refer to this x (it is shadowed by the one in the for line below it).

randomforestwhitaker commented 6 years ago

Removing this line