Commit f17c98df authored by James Laver's avatar James Laver Committed by Alexandre Delanoë

add Garg.Utils.Array

parent 6cb50a8c
function _push(a, i) { a.push(i); }
module.exports={
_push: _push
};
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment