Changes between Initial Version and Version 1 of Functions/Or


Ignore:
Timestamp:
Nov 2, 2016, 8:57:12 AM (4 years ago)
Author:
schiptsov
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Functions/Or

    v1 v1  
     1= or =
     2
     3{{{||}}} is logical {{{OR}}}
     4
     5in a lazy language {{{or}}} ''naturally'' short-circuits.
     6{{{#!haskell
     7or []      =  False
     8or (x:xs)  =  x || or x
     9}}}
     10{{{#!haskell
     11or  =  foldr (||) False
     12}}}