Module

Neon.Class.HasToArray

Package
purescript-neon
Repository
tfausak/purescript-neon

#HasToArray Source

class HasToArray a b  where

Represents types that can be converted to an array.

toArray (Cons 1 Nil) :: Array Int -- [1]
toArray (Just 1) :: Array Int -- [1]
toArray "ab" :: String -- ['a', 'b']

Members

Instances