[Code] Haskell - "and"

Dieses Thema im Forum "Programmierung & Entwicklung" wurde erstellt von Hanskopf, 7. Mai 2010 .

Schlagworte:
  1. 7. Mai 2010
    Haskell - "and"

    Also vorweg: Es geht mir NUR um das "and".

    Ich hab hier folgenden Haskell Code und verstehe nicht welche Funktion das "and" hat

    primes = 2 : [ n | n <–[3, 5 . . ],
    isPrimen ]isPrimen = and [n `mod` x > 0 | x <–candidates primes]
    where candidates (p : ps) | p*p > n = [ ]
    | otherwise = p:candidates ps

    kann mir jmd weiterhelfen `?
     
  2. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.