I write code below:
let array1: [Int] = [0,1] let array2 = array1 + [2]
It just works.I want to find where + operator define.
+
You can select the operator in the Xcode source editor, and choose "Navigate -> Jump to definition" from the menu, or press CMD+CTRL+J.
(This was broken in Xcode 10, but works again in Xcode 11, which is currently in beta.)