Juliaでリスト内にある特定の要素があるかどうかを判定する[Julia]

7月 27, 2020

f:id:Vastee:20181119154857p:plain

l=["a","b","c","d","e"]
in("a", l)
>> true

inという関数を使うだけ.
ちなみにpythonでは,

l=["a","b","c","d","e"]
"a" in l
>> True

と書く.

Julia

Posted by vastee