jsaddle-0.7.0.0: Interface for JavaScript that works with GHCJS and GHC

Safe HaskellNone
LanguageHaskell2010

Language.Javascript.JSaddle.Array

Description

Interface to JavaScript array

Synopsis

Documentation

newtype SomeJSArray m Source #

Constructors

SomeJSArray JSVal 

type JSArray = SomeJSArray Immutable Source #

length :: Foldable t => forall a. t a -> Int #

Returns the size/length of a finite structure as an Int. The default implementation is optimized for structures that are similar to cons-lists, because there is no general way to do better.