# Inconsistent behavior of map

**URL:** <https://discourse.julialang.org/t/inconsistent-behavior-of-map/14733>\
**Category:** General Usage\
**Tags:** bug, debug\
**Created:** [September 9, 2018, 2:05pm UTC](https://discourse.julialang.org/t/inconsistent-behavior-of-map/14733 "2018-09-09T14:05:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpapo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gpapo/32/1857_2.png) [@gpapo](https://discourse.julialang.org/u/gpapo)\
**Post date:** [September 9, 2018, 2:05pm UTC](https://discourse.julialang.org/t/inconsistent-behavior-of-map/14733/1 "2018-09-09T14:05:14Z")

</div>

Why

```julia
julia> map(string, 1)
"1"

```

returns obviously a scalar but

```julia
julia> map(string, 'a')
1-element Array{String,1}:
 "a"

```

returns an 1-dimensional array?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 9, 2018, 2:56pm UTC](https://discourse.julialang.org/t/inconsistent-behavior-of-map/14733/2 "2018-09-09T14:56:11Z")

</div>

`map` special-cases when all arguments are numbers. I think this is a consequence of numbers being iterable in Julia. I agree that it is weird.
