Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Julia

You're reading from   Learning Julia Build high-performance applications for scientific computing

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781785883279
Length 316 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Rahul Lakhanpal Rahul Lakhanpal
Author Profile Icon Rahul Lakhanpal
Rahul Lakhanpal
Anshul Joshi Anshul Joshi
Author Profile Icon Anshul Joshi
Anshul Joshi
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Understanding Julia's Ecosystem FREE CHAPTER 2. Programming Concepts with Julia 3. Functions in Julia 4. Understanding Types and Dispatch 5. Working with Control Flow 6. Interoperability and Metaprogramming 7. Numerical and Scientific Computation with Julia 8. Data Visualization and Graphics 9. Connecting with Databases 10. Julia’s Internals

Built-in functions


Julia provides a number of built-in functions, which are very helpful once you fully understand the richness of the Julia base library. Like every other language, Julia has functions for most common tasks performed by users, as well as some surprises as we go through this topic.

We will now walk through some of the most common built-in functions one by one, along with detailed examples:

  • workspace(): This is a function specifically for Julia REPL and isn't available outside of it. The work of this function is actually to clear out the current workspace in the Julia REPL, deleting all the functions, variables, constants, or types defined by the user without needing to exit the REPL and restart it once again.
  • typeof(): This function is used mainly to know the data type of an argument passed to it. This is similar to the type() function for those familiar with Python:
julia> typeof("Julia")
String

julia> typeof(1.0)
Float64

julia> typeof(1)
Int64

julia> typeof(0x23...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image