Show
Ignore:
Timestamp:
09/16/07 14:47:13 (14 months ago)
Author:
moritz
Message:

List.hs: .first returns undef if no match was found
A haskell guru should look at that code to check it ;)

Files:
1 modified

Legend:

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

    r17865 r17868  
    337337  if (length vals) > 0  
    338338    then return $ (vals !! 0) 
    339     else fail $ "Cannot call first() with a filter that removes all elements from the input list" 
     339    else return $ undef 
    340340 
    341341op2Map :: Val -> Val -> Eval Val