Array.purs 276 Bytes
Newer Older
James Laver's avatar
James Laver committed
1 2 3 4 5 6 7 8 9 10
module Gargantext.Utils.Array (push) where

import Effect (Effect)
import Data.Unit (Unit)
import Effect.Uncurried (EffectFn2, runEffectFn2)

foreign import _push :: forall a. EffectFn2 (Array a) a Unit

push :: forall a. Array a -> a -> Effect Unit
push = runEffectFn2 _push