What does the “Just” syntax mean in Haskell?
It’s actually just a normal data constructor that happens to be defined in the Prelude, which is the standard library that is imported automatically into every module. What Maybe is, Structurally The definition looks something like this: data Maybe a = Just a | Nothing That declaration defines a type, Maybe a, which is parameterized … Read more