Explorar o código

Add alternative rangePi folding in comment

Josh Bicking %!s(int64=6) %!d(string=hai) anos
pai
achega
ada7d5cba9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/Main.hs

+ 1 - 0
app/Main.hs

@@ -43,6 +43,7 @@ rangePi printFun (Just low) (Just high) =
     "Error: Please give a proper range."
   else
     foldr (++) [] (map printFun (drop (fromIntegral low) . take (fromIntegral high) $ hexDigits))
+    -- foldl (.) id (map (showString . printFun) (drop (fromIntegral low) . take (fromIntegral high) $ hexDigits)) ""  -- Alternative implementation: not sure about speed
 
 rangePi _ _ _  = printErr