Changeset 14999 for src/Pugs/Prim/List.hs
- Timestamp:
- 01/05/07 11:46:29 (23 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Prim/List.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/List.hs
r14933 r14999 84 84 op2Pick l@(VList xs) (VNum n) 85 85 | n == 1/0 = op2Pick l (VInt . toInteger $ length xs) 86 | otherwise = op2Pick l (VInt . toInteger$ floor n)86 | otherwise = op2Pick l (VInt $ floor n) 87 87 op2Pick (VList xs) (VInt num) = do 88 88 shuffled <- shuffleN (fromInteger num) xs
