Member-only story
Awesome tricks every Julia coder should know
Welcome back! Julia is an awesome programming language with a ton of capability, if you’re new to this language, check out the link below to learn more about it:
So, let’s talk about some awesome tricks every Julia coder should know about!
Filtering Out File Types
Starting off, one of the coolest tricks you can do is filtering out the file types of a directory, to do this we can use the endswith method:
xlsxs = filter(endswith(“.xlsx”), readdir())
This will output all of the files that end with .xlsx in that directory and store it in a variable called xlsxs.
Instant Documentation
Another awesome feature with Julia is the instant documentation function, if you use the @ doc function before a piece of code, this will print out the documentation that’s related to your code: