Show
Ignore:
Timestamp:
01/05/07 11:46:29 (23 months ago)
Author:
audreyt
Message:

* Pugs.Prim.List: Remove an unneccessary toInteger.

Files:
1 modified

Legend:

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

    r14933 r14999  
    8484op2Pick l@(VList xs) (VNum n) 
    8585    | n == 1/0  = op2Pick l (VInt . toInteger $ length xs) 
    86     | otherwise = op2Pick l (VInt . toInteger $ floor n) 
     86    | otherwise = op2Pick l (VInt $ floor n) 
    8787op2Pick (VList xs) (VInt num) = do 
    8888    shuffled <- shuffleN (fromInteger num) xs