HJScript-0.6.1: HJScript is a Haskell EDSL for writing JavaScript programs.

Stabilityexperimental
MaintainerJoel Bjornson joel.bjornson@gmail.com Niklas Broberg nibro@cs.chalmers.se
Safe HaskellNone

HJScript.Objects.Array

Description

 

Synopsis

Documentation

arrLength :: JArray t -> JIntSource

Properties for Array

push :: Exp t -> JArray t -> HJScript ()Source

Methods on array

mapArray :: (Exp t1 -> Exp t2) -> JArray t1 -> HJScript (JArray t2)Source

Map array

mapArrayH :: (Exp t1 -> HJScript (Exp t2)) -> JArray t1 -> HJScript (JArray t2)Source

mapArrayH

mapArrayH_ :: (Exp t1 -> HJScript t2) -> JArray t1 -> HJScript ()Source

Throw away produced value.

foreach :: JArray t1 -> (Exp t1 -> HJScript t2) -> HJScript ()Source

Synonym for mapArrayH_

filterArray :: (Exp t -> JBool) -> JArray t -> HJScript (JArray t)Source

Select array elements with a condition.