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.
MLを学ぶだけで、Haskellのconstに似た組み込み関数を探していました。次のように定義されます。
fun const a b = a
もちろん、自分で実装するのは簡単です:)しかし、私が見落としている同等の標準関数があるかもしれないと思いました。
標準ライブラリにはそのような関数はないので、自分で定義する必要があります。