julia 2配列間の要素の比較を行いたいです。
以下のような配列x, y があるとき、
x = ["a","b","c","d"] y = ["b","d"]
x の中に y の要素が存在するかどうかを true, false
で返す、関数があるのでしょうか。
(["a","b","c","d"] .== "b").|(["a","b","c","d"] .== "d") 4-element BitArray{1}: false true false true # のような 関数 function function(x,y) 4-element BitArray{1}: false true false true
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。