Julia end Keyword | Marking end of blocks in Julia
Keywords in Julia are reserved words that have a pre-defined meaning to the compiler. These keywords can’t be used as a variable name.
'end' keyword in Julia is used to mark the end of a block of statements. This block can be of any type like struct, loop, conditional statement, module, etc.
block_type block_name Statement Statement end
1 is odd 2 is even 3 is odd 4 is even 5 is odd
'end'can also be used to mark the last index in a 1D array.
Last element of Array: 5