engineering company. • We value the growth of everyone. • All employees are CEOs. • The salary is decided by yourself. • We decide all things by the proposal request. Reference : https://note.mu/raykataoka/n/n50c282bcb305
check simple mistake before running. ◦ Missing a type ◦ Typo ◦ Missing number of arguments • You’ll be able to use the IDE effectivery ◦ Autocomplete ◦ Refactoring
list = List(1, 2, 3, 4, 5, 6, 7, 8, 9) var sum = 0 list foreach(i => sum = sum + i) val list = List(1, 2, 3, 4, 5, 6, 7, 8, 9) val sum = list.foldLeft(0) {(s, i) => s + i} You can also use var! Let’s start to change var to val!