Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
配列かどうかを確認する必要があります
a1 = [x, y]
次のような配列の配列で表示されます
a2 = [ [a, b], [c,d], [e, f] ]
ルビー1.9で。たとえば、 ifx == cとy == dthen 関数は でなければなりませんTrue。やってみた
x == c
y == d
True
a2.includes? a1しかし、a1 in a2 どちらも機能しません。
a2.includes? a1
a1 in a2