ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.Array.ST

Documentation

type STJSArray s = SomeJSArray (STMutable s) Source #

build :: (forall s. STJSArray s -> ST s ()) -> JSArray Source #

create :: ST s (STJSArray s) Source #

length :: STJSArray s -> ST s Int Source #

null :: STJSArray s -> ST s Bool Source #

append :: STJSArray s -> STJSArray s -> ST s (STJSArray s) Source #

fromList :: [JSVal] -> ST s (STJSArray s) Source #

toList :: STJSArray s -> ST s [JSVal] Source #

read :: Int -> STJSArray s -> ST s JSVal Source #

write :: Int -> JSVal -> STJSArray s -> ST s () Source #

push :: JSVal -> STJSArray s -> ST s () Source #

pop :: STJSArray s -> ST s JSVal Source #

unshift :: JSVal -> STJSArray s -> ST s () Source #

reverse :: STJSArray s -> ST s () Source #

take :: Int -> STJSArray s -> ST s (STJSArray s) Source #

drop :: Int -> STJSArray s -> ST s (STJSArray s) Source #