Nola's Backyard
Home
Posts
Tags
Scraps
型シグネチャ@Haskell
Haskellにおいて、変数や関数の
型
を定義する構文。
Example
Copy
myNumber
::
Int
-- これが型シグネチャ
myNumber
=
42