Curry (programming language): Difference between revisions

Content deleted Content added
Owl2442 (talk | contribs)
m Influence by Prolog added
m linking
Line 71:
not '(not False)' → 'not True' → False
 
More complex data structures can be obtained by [[recursive data typestype]]s. For instance, a list of elements, where the type of elements is arbitrary (denoted by
the type variable {{Mono|a}}), is either the empty list “{{Mono|[]}}” or the non-empty list “{{Mono|x:xs}}” consisting of a first element {{Mono|x}} and a list {{Mono|xs}}:
<source lang="haskell">