# The input number of one function

**URL:** https://discourse.julialang.org/t/the-input-number-of-one-function/15449
**Category:** New to Julia
**Tags:** matlab
**Created:** [September 25, 2018, 4:42am UTC](https://discourse.julialang.org/t/the-input-number-of-one-function/15449 "2018-09-25T04:42:49Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [September 25, 2018, 7:19am UTC](https://discourse.julialang.org/t/the-input-number-of-one-function/15449/5 "2018-09-25T07:19:19Z")

</div>

I think you should

```julia
function a(files, images)
  for i=1:2:length(files)
    ...
  end
end

```

if you really want to pass them in a separate arguments

```julia
function a(args...)
  files = args[1:2:end÷2]
  imgs = args[2:2:end÷2]
  for i=1:length(files)
    ..
  end
end

```

---

_[View the full topic](https://discourse.julialang.org/t/the-input-number-of-one-function/15449)._
