Changeset 14927 for src/Pugs/Prim/List.hs
- Timestamp:
- 12/19/06 01:47:53 (2 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Prim/List.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/List.hs
r14926 r14927 72 72 ref <- readRef r 73 73 op2Pick ref num 74 op2Pick l@(VList xs) (VNum n) 75 | n == 1/0 = op2Pick l (VInt . toInteger $ length xs) 76 | otherwise = op2Pick l (VInt . toInteger $ floor n) 74 77 op2Pick (VList xs) (VInt num) = do 75 78 shuffled <- shuffleN (fromInteger num) xs
