基本的な演算子。
= は、パターンマッチ。 == は、弱い比較。 === == は、強い比較。
iex(1)> 1 = 1 1 iex(2)> 1 == 1 true iex(3)> 1 === 1 true
iex(1)> 1 = 1.0 ** (MatchError) no match of right hand side value: 1.0 iex(2)> 1 == 1.0 true iex(3)> 1 === 1.0 false
基本的な演算子。
= は、パターンマッチ。 == は、弱い比較。 === == は、強い比較。
iex(1)> 1 = 1 1 iex(2)> 1 == 1 true iex(3)> 1 === 1 true
iex(1)> 1 = 1.0 ** (MatchError) no match of right hand side value: 1.0 iex(2)> 1 == 1.0 true iex(3)> 1 === 1.0 false