Hi I like a simple sqrt operation on a list but I don't get the result scala val l = List (1,5,786,25)l: List[Int] = List(1, 5, 786, 25) scala> l.map(x => x * x)res42: List[Int] = List(1, 25, 617796, 625) scala> l.map(x => x * x).sqrt<console>:28: error: value sqrt is not a member of List[Int] l.map(x => x * x).sqrt Any ideas Thanks
- Working out SQRT on a list Ashok Kumar
- Re: Working out SQRT on a list Mich Talebzadeh