Changeset 17871 for src/Pugs/Prim

Show
Ignore:
Timestamp:
09/16/07 15:14:34 (14 months ago)
Author:
ryporter
Message:

replace improper use of length() in my previous check-in, because it prevents laziness

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/List.hs

    r17868 r17871  
    335335op2First list sub = do 
    336336  (VList vals) <- (op2Grep list sub) 
    337   if (length vals) > 0  
     337  if not (null vals) 
    338338    then return $ (vals !! 0) 
    339339    else return $ undef