# Map function with two arguments where one isn't array

**URL:** <https://discourse.julialang.org/t/map-function-with-two-arguments-where-one-isnt-array/28284>\
**Category:** New to Julia\
**Created:** [September 2, 2019, 12:50pm UTC](https://discourse.julialang.org/t/map-function-with-two-arguments-where-one-isnt-array/28284 "2019-09-02T12:50:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)\
**Post date:** [September 2, 2019, 12:50pm UTC](https://discourse.julialang.org/t/map-function-with-two-arguments-where-one-isnt-array/28284/1 "2019-09-02T12:50:32Z")

</div>

Is there some way to implement map function with two arguments where one isn’t an array, without creating a new array, since it can be too large.

Here is a very simple example of an idea.

> map(+,[2,3],1)

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [September 2, 2019, 1:12pm UTC](https://discourse.julialang.org/t/map-function-with-two-arguments-where-one-isnt-array/28284/2 "2019-09-02T13:12:00Z")

</div>

Are you looking for `broacast`?

```julia
julia> broadcast(+, [2, 3], 1)
2-element Array{Int64,1}:
 3
 4

```

---

<div class="post-metadata">

**Author:** ![BMval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bmval/32/7647_2.png) [@BMval](https://discourse.julialang.org/u/BMval)\
**Post date:** [September 2, 2019, 1:52pm UTC](https://discourse.julialang.org/t/map-function-with-two-arguments-where-one-isnt-array/28284/3 "2019-09-02T13:52:02Z")

</div>

Thank you.  
I hope that is I need.
