Avatar
Currently this code is not compilable. func median(bp: UnsafeMutableBufferPointer) { bp.sort() // error: cannot use mutating member on immutable value: 'bp' is a 'let' constant return bp[bp.count/2] } It is because sort, defined in MutableColelction, is mutating. U...
👍 1