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
- Julia function keyword | Create user-defined functions in Julia
- Julia continue Keyword | Continue iterating to next value of a loop in Julia
- Julia break Keyword | Exiting from a loop in Julia
- Julia local Keyword | Creating a local variable in Julia
- Julia global Keyword | Creating a global variable in Julia
- if keyword - Conditional evaluation in Julia
- Julia return keyword
- try keyword - Handling Errors in Julia
- else keyword in Julia
- Get a substring of specific size from end of a string in Julia - last() Method
- Remove end characters from strings in Julia - strip(), lstrip() and rstrip() Methods
- Getting ceiling value of x in Julia - ceil() Method
- Getting floor value of x in Julia - floor() Method
- Getting the minimum value from a list in Julia - min() Method
- Package Management in Julia
- Visualisation in Julia
- Random Numbers Ecosystem in Julia - The Pseudo Side
- Accessing element at a specific index in Julia - getindex() Method
- Get size of string in Julia - sizeof() Method
- Reverse a string in Julia - reverse() Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.