This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Array where | |
import qualified Data.IntMap as M | |
import {-# SOURCE #-} Object | |
data Array = Array | |
{ _map :: M.IntMap Value | |
} | |
a ! i {- | i >= baseLength ai -} = maybe vnil id $ M.lookup i (_map a) |
NewerOlder