# Understanding the syntax used in the code below

**URL:** https://discourse.julialang.org/t/understanding-the-syntax-used-in-the-code-below/99436
**Category:** New to Julia
**Created:** [May 26, 2023, 10:15am UTC](https://discourse.julialang.org/t/understanding-the-syntax-used-in-the-code-below/99436 "2023-05-26T10:15:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jaswi](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jaswi](https://discourse.julialang.org/u/jaswi)
#### Post date: [May 26, 2023, 10:15am UTC](https://discourse.julialang.org/t/understanding-the-syntax-used-in-the-code-below/99436/1 "2023-05-26T10:15:44Z")

</div>

Dear Community,

I have posted a code snippet from a github repository.  
The code posted below is at [CCBlade.jl/airfoils.jl at master · antarNetra/CCBlade.jl · GitHub](https://github.com/antarNetra/CCBlade.jl/blob/master/src/airfoils.jl) lines 267 to 289.  
What id do not understand the use of underscores “\_”, in the loop with the comment  
“iterate over remaining files”. Where can i get more information on this construct.  
What i understand from here is that the file contains a vector of strings in this order:  
info, Re1, Mach, alpha, cl1, cd1  
and when we are reading these values from an array of files we are kind of sending the read in information into null for some strings and for some we are storing it into the variables.

Please point out the topic under which i can read more about it. I looked up in the book Think Julia but could not find any similar construct and right now going through Julia as second language.

function AlphaReAF(filenames::Vector{String}; radians=true)

```
info, Re1, Mach, alpha, cl1, cd1 = parsefile(filenames[1], radians) # assumes common alpha across files, also common info and common Mach
nalpha = length(alpha)
ncond = length(filenames)

cl = Array{Float64}(undef, nalpha, ncond)
cd = Array{Float64}(undef, nalpha, ncond)
Re = Array{Float64}(undef, ncond)
cl[:, 1] = cl1
cd[:, 1] = cd1
Re[1] = Re1

# iterate over remaining files
for i = 2:ncond
    _, Rei, _, _, cli, cdi = parsefile(filenames[i], radians)
    cl[:, i] = cli
    cd[:, i] = cdi
    Re[i] = Rei
end

return AlphaReAF(alpha, Re, cl, cd, info, Mach)

```

end

Many Thank and Best Regards  
Jaswinder

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [May 26, 2023, 10:45am UTC](https://discourse.julialang.org/t/understanding-the-syntax-used-in-the-code-below/99436/2 "2023-05-26T10:45:20Z")

</div>

> [@jaswi](#):
>
> `_, Rei, _, _, cli, cdi = parsefile(filenames[i], radians)`

This is the same as

```julia
dummy1, Rei, dummy2, dummy3, cli, cdi = parsefile(filenames[i], radians)

```

except that some values are written to a write-only variable to signal that those values will not (and cannot) be used later.

See [Variables · The Julia Language](https://docs.julialang.org/en/v1/manual/variables/#man-allowed-variable-names) for documentation.

---

<div class="post-metadata">

### Author: ![jaswi](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jaswi](https://discourse.julialang.org/u/jaswi)
#### Post date: [May 26, 2023, 12:12pm UTC](https://discourse.julialang.org/t/understanding-the-syntax-used-in-the-code-below/99436/3 "2023-05-26T12:12:37Z")

</div>

Thanks a lot. The link to the documentation is spot on. Exactly what i was looking for.  
Thanks once again.  
Jaswinder
