Why is ": type null" different from Frege from Haskell?
1 answer
Since it is Stringnot [Char]in Frege, some (perhaps half) attempts were made, however, guarantee a certain level of compatibility behind the scenes:
- The type of the class
Emptymakes it possible to test for an empty value (null) (probably it should be a subclass of Monoid) - Class type
ListLikegives youheadandtailand(++) ListSource, (toList). String, Maybe . ,[a],ListSource.
, , , Haskell, Frege.
: , null, (++), head, tail , , Frege.
+5