scala twoliner. manhattan distance
scala\nobject Solution {\n  def escapeGhosts(ghosts: Array[Array[Int]], target: Array[Int]): Boolean =\n    def dist(a: Array[Int])(b: Array[Int]):Int = (a zip 
```scala\nobject Solution {\n  def escapeGhosts(ghosts: Array[Array[Int]], target: Array[Int]): Boolean =\n    def dist(a: Array[Int])(b: Array[Int]):Int = (a zip b).map{case (n,m) => (n-m).abs}.sum\n    dist(Array(0,0))(target) < ghosts.map(dist(target)).min\n}\n```
['Matrix', 'Scala']