我希望能够比较两个共同的数组,而不是重复.
array1 = ['1. walking to the park to find some ice cream']
array2 = ['2. walking to the park to find ice cream and find more ice cream']
Run Code Online (Sandbox Code Playgroud)
样本输出:
walking to the park find ice cream
Run Code Online (Sandbox Code Playgroud) ruby ×2