MHMangesh Havaleintheman.hashnode.dev·Dec 2, 2022 · 3 min readSCALA Collection..-------- ARRAY----------- collection of homogenious data. 0 based index serching is efficirnt adding data at is not efficient bcoz it has fixed size defined initially scala> val a = Array(1, 2, 23, 23) a: Array[Int] = Array(1, 2, 23, 23) scala...00
MHMangesh Havaleintheman.hashnode.dev·Nov 24, 2022 · 1 min readHigher Order Function..higher order function or def function including function----------- the function which has input parameter as function.. or return function as output is Called Higher Order Function. scala> def Transform(x: Int, f(x): Int => Int) = {f(x)} <co...00