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.
ミドルアイテムを合わせることは可能ですか?このような:
a a ... b ... c c
中央の要素は b を取得し、残りの要素は a と c を取得します
aこれは、要素数と要素数cが一定である場合にのみ機能します。
a
c
a || a |*| b |*| c||c
これは 2*a、多くの b、2*c を表します
たぶん、より良い解決策は、利用可能なマッチング技術を使用できる小さな拡張機能を作成することでしょうか?
私は試していませんが、多分:
a |*| a || b || c |*| c