Search results

An Array: a data structure supporting efficient random access. In the JavaScript backend, values of this type are represented as JavaScript Arrays at runtime.

Construct values using literals:

x = [1,2,3,4,5] :: Array Int
P <builtin> M Prim
array :: forall a. JsonCodec a -> JsonCodec (Array a)

A codec for arbitrary length Arrays where every item in the array shares the same type.

import Data.Codec.Argonaut as CA

codecIntArray ∷ CA.JsonCodec (Array Int)
codecIntArray = CA.array CA.int
P purescript-codec-argonaut M Data.Codec.Argonaut
array :: forall a. Codec a -> Codec (Array a)

A codec for arbitrary length Arrays where every item in the array shares the same type.

import Data.Codec.JSON as CJ

codecIntArray ∷ CJ.Codec (Array Int)
codecIntArray = CJ.array CJ.int
P purescript-codec-json M Data.Codec.JSON
array :: forall t. Corecursive t EJsonF => Array t -> t
P purescript-ejson M Data.Json.Extended
Array :: forall a. (Array a) -> EJsonF a
P purescript-ejson M Data.Json.Extended.Signature.Core
Array :: EJsonType
P purescript-ejson M Data.Json.Extended.Type
array :: forall a. Arbitrary a -> Arbitrary (Array a)
P purescript-classless-arbitrary M Classless.Arbitrary
array :: forall a. DecodeJson a -> DecodeJson (Array a)
P purescript-classless-decode-json M Classless.DecodeJson
array :: forall a. EncodeJson a -> EncodeJson (Array a)
P purescript-classless-encode-json M Classless.EncodeJson
array :: forall r. Monoid r => Fold' r Foreign (Array Foreign)

A Fold which reads an Array.

P purescript-foreign-lens M Data.Foreign.Lens
array :: forall opt html fm fs msg sta a. OptArgs (CfgArray a) opt => IDHtml html => opt -> DataUI (IDSurface html) fm fs msg sta a -> DataUI (IDSurface html) fm fs (ArrayMsg (fm msg)) (ArrayState (fs sta)) (Array a)
P purescript-interactive-data M InteractiveData.DataUIs.Array
Array :: Schema -> Schema
P purescript-json-schema M Data.JSON.Schema
array :: forall props u a. { addLabel :: String, defaultValue :: u, editor :: FormBuilder { readonly :: Boolean | props } u a, label :: String } -> FormBuilder { readonly :: Boolean | props } (Array u) (Array a)

Edit an Array of values.

This FormBuilder displays a removable section for each array element, along with an "Add..." button in the final row.

P purescript-lumi-components M Lumi.Components.Form
array :: forall m b a. Index a => Monad m => String -> ParserT (Array Foreign) m b -> ParserT Foreign m b
P purescript-parsing-foreign M Text.Parsing.Foreign
Array :: RowMode
P purescript-pg M Postgres.Query
array :: forall m. Monad m => FieldValueDual m (Array String)
P purescript-polyform-validators M Polyform.Dual.Validators.UrlEncoded
array :: forall e m. Monad m => Validator m e (Array Json)
P purescript-polyform-validators M Polyform.Validators.Json
array :: forall m. Monad m => FieldValueValidator m (Array String)
P purescript-polyform-validators M Polyform.Validators.UrlEncoded
Array :: AttributeType
P purescript-rmrk-parser M RMRK.Primitives.Properties
array :: forall i context channel. String -> SDOM (ArrayChannel i channel) (ArrayContext context) i i -> SDOM channel context (Array i) (Array i)

Create a component which renders an array of subcomponents.

The first argument is the name of the HTML element used as the container.

The second argument is a template component for rendered subcomponents.

Note:

  • The context of the template component provides access to the index of the current subcomponent.
  • The event channel for the template component provides the ability to modify the input array itself.
  • This component is optimized for edits at the end of the array. Small arrays should not present any issues, but large arrays might if edits typically take place away from the end of the array.
P purescript-sdom M SDOM
array :: forall f t. Corecursive t (SqlF EJsonF) => Foldable f => f t -> t
P purescript-sql-squared M SqlSquared.Constructors
array :: forall r mode idx val. Expr r idx => Expr r val => Z3 r mode (Z3Array r idx val)

Create an array Z3 variable (not to be confused with an array of Z3 variables)

P purescript-z3 M Z3
array_ :: forall html fm fs msg sta a. IDHtml html => DataUI (IDSurface html) fm fs msg sta a -> DataUI (IDSurface html) fm fs (ArrayMsg (fm msg)) (ArrayState (fs sta)) (Array a)
P purescript-interactive-data M InteractiveData.DataUIs.Array
P purescript-mathbox M Mathbox.Class.Data.Array
Array_ :: Array_ -> MathboxPrimitive
P purescript-mathbox M Mathbox.Mathbox
arrayOf :: forall a. Gen a -> Gen (Array a)

Create a random generator which generates an array of random values.

P purescript-quickcheck M Test.QuickCheck.Gen
P purescript-mathbox M Mathbox.Class.Data.Array
arrayOf :: forall m a. MonadRec m => GenT m a -> GenT m (Array a)

Create a random generator which generates an array of random values. Stack-safety is guaranteed via the MonadRec constraint

P purescript-generate-values M Control.Monad.Gen.Trans
arrayOf :: forall a. Gen a -> Gen (Array a)

Generates an array of random length. The maximum length depends on the size parameter.

P purescript-jack M Jack.Combinators
arrayOf :: forall o e m. Monad m => JsonDual m e o -> JsonDual m e (Array o)
P purescript-polyform-validators M Polyform.Duals.Validators.Json
arrayOf :: forall a e m. Monad m => Validator m e a -> Validator m e (Array a)
P purescript-polyform-validators M Polyform.Validators.Json
arrayOf1 :: forall a. Gen a -> Gen (NonEmptyArray a)

Create a random generator which generates a non-empty array of random values.

P purescript-quickcheck M Test.QuickCheck.Gen
ArrayAgg :: forall input rest fields output. input -> Aggregate input rest fields output
P purescript-droplet M Droplet.Language.Internal.Function
P purescript-interactive-data M InteractiveData.DataUIs.Array
arrayOf' :: forall m a. Monad m => GenT m a -> GenT m (Array a)

Create a random generator which generates an array of random values. This is only stack-safe if the underlying monad is stack-safe.

P purescript-generate-values M Control.Monad.Gen.Trans
arrayOf1 :: forall m a. MonadRec m => GenT m a -> GenT m (NonEmptyArray a)

Create a random generator which generates a non-empty array of random values. Stack-safety is guaranteed via the MonadRec constraint

P purescript-generate-values M Control.Monad.Gen.Trans
arrayOf1 :: forall a. Gen a -> Gen (NonEmpty Array a)

Generates a non-empty array of random length. The maximum length depends on the size parameter.

P purescript-jack M Jack.Combinators
arrayOfN :: forall a. Int -> Gen a -> Gen (Array a)

Generates an array of the given length.

P purescript-jack M Jack.Combinators
ArrayPop :: forall value. ArrayUpdate value
P purescript-panda M Panda.Internal.Types

The unifying representation for the different typed arrays

P purescript-arraybuffer-types M Data.ArrayBuffer.Types
ArrayView :: (forall r. (forall a. ArrayView a -> r) -> r) -> RequestBody
P purescript-affjax M Affjax.RequestBody
arrayView :: forall a. ArrayView a -> RequestBody
P purescript-affjax M Affjax.RequestBody
P purescript-has-js-rep M HasJSRep
array_agg :: forall f t fields. ToArrayAgg f fields t => f -> Aggregate f E fields (Maybe (Array t))
P purescript-droplet M Droplet.Language.Internal.Function
ArrayMove :: forall value. Int -> Int -> ArrayUpdate value
P purescript-panda M Panda.Internal.Types
arrayOf1' :: forall m a. Monad m => GenT m a -> GenT m (NonEmptyArray a)

Create a random generator which generates a non-empty array of random values. This is only stack-safe if the underlying monad is stack-safe.

P purescript-generate-values M Control.Monad.Gen.Trans
arrayOfN' :: forall a. Int -> Int -> Gen a -> Gen (Array a)

Generates an array between 'n' and 'm' in length.

P purescript-jack M Jack.Combinators
ArrayPush :: forall value. value -> ArrayUpdate value
P purescript-panda M Panda.Internal.Types
P purescript-son-of-a-j M SonJ