UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

14 lines (10 loc) 289 B
// @flow import {curry} from "flow-static-land/lib/Fun"; /** * Returns a new Array with elements prepended to the one given. */ const prepend = <Element>( elements: Array<Element>, array: Array<Element> ): Array<Element> => [...elements, ...array]; export default curry(prepend);