# Mapslices() warntype?

**URL:** https://discourse.julialang.org/t/mapslices-warntype/36844
**Category:** New to Julia
**Tags:** mapslices
**Created:** [April 1, 2020, 11:20am UTC](https://discourse.julialang.org/t/mapslices-warntype/36844 "2020-04-01T11:20:51Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![mcabbott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcabbott/32/6603_2.png) [@mcabbott](https://discourse.julialang.org/u/mcabbott)
#### Post date: [April 1, 2020, 1:24pm UTC](https://discourse.julialang.org/t/mapslices-warntype/36844/5 "2020-04-01T13:24:55Z")

</div>

> [@tomtom](#):
>
> `dims` : `1` is used in `prod()` and `mapslices()` but `2` should be used in `eachslice()`

Yes, see e.g. [mapslices, map interpret dims differently · Issue #34840 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/34840), [Equivalent of mapslices with views? · Issue #29146 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/29146), and maybe [https://discourse.julialang.org/t/ann-lazystack-slicemap-starslice](https://discourse.julialang.org/t/ann-lazystack-slicemap-starslice) .

---

_[View the full topic](https://discourse.julialang.org/t/mapslices-warntype/36844)._
