Learn how to group related program statements into higher-order functions that can be called throughout the program.
- [Instructor] Functions are yet another foundational … building block of modern programming … that encapsulate distinct pieces of logic. … So here in my editor I'm going to open … the functions_start file and we're going to exercise … some of Julia's function features. … Now we've already seen a few simple examples … of functions in the course but here we're going to … take a look a little bit deeper at how you can use … the functions in Julia. … So to start off, functions are defined using … the function keyword and they're given a name. … So in this case I'll use myfunc … and I'll give my function two arguments; a and b. … Now by convention function names are usually all lower case … and might contain underscores if the name is hard to read. … So inside the function we're going to define the logic … and I'll just have a print line statement … that says This is a function … and then I'm going to return … adding the two arguments together. … And then at the end of the function we have …
- Using the Julia REPL tool
- Differences between Julia and other languages
- Variables and data types
- Numbers in Julia
- Defining and operating on strings
- Using built-in functions in Julia
- Conditional statements
- Using array functions
- String processing
Skill Level Beginner
Python Basics for Java Developerswith Deepa Muralidhar42m 53s Beginner
Programming Foundations: Algorithmswith Joe Marini1h 45m Beginner
What you should know1m 26s
2. Language Basics
3. Language Features
4. Control Structures
5. Data Structures
6. Julia Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.