Discover how to use the various built-in sorting functions in Julia to sort native as well as custom types.
- [Narrator] All right, let's wrap up this chapter … by taking a closer look at how to sort … various kinds of data in Julia. … So I'm going to open up my Sort Start file. … And you can see here I've already got some data defined. … And these numbers are clearly in a random order. … So to sort data, we use the sort function. … And I can supply a transformation function … that gets applied to each item during the sort process. … So let's go ahead and see a simple example. … I can sort this information … by using the sort function. … And I'm going use the version of sort … that does not have the exclamation point. … It's going to return a new sorted array. … So I'll sort array one. … And then I can use the by parameter … to specify that I want to apply a transformation function … to each item in the array. … In this case, I'll just simply apply absolute value … to each one of these guys. … So this will become a positive three, … this will be positive 15 and so on. … And then I can just print the result. …
- 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.