One session:
julia> function foo(z)
c = 100
max = 80
for n = 1:max
abs(z) ≥ 2 && return n-1
z = z^2 + c
end
return max
using Tokenize | |
SCOPE_STARTERS = [Tokenize.Tokens.BEGIN, | |
Tokenize.Tokens.WHILE, | |
Tokenize.Tokens.IF, | |
Tokenize.Tokens.FOR, | |
Tokenize.Tokens.TRY, | |
Tokenize.Tokens.FUNCTION, | |
Tokenize.Tokens.MACRO, | |
Tokenize.Tokens.LET, |
julia> versioninfo() | |
Julia Version 0.5.0 | |
Commit 3c9d753 (2016-09-19 18:14 UTC) | |
Platform Info: | |
System: NT (x86_64-w64-mingw32) | |
CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz | |
WORD_SIZE: 64 | |
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) | |
LAPACK: libopenblas64_ | |
LIBM: libopenlibm |
Using worker: worker-linux-docker-8ee3aa76.prod.travis-ci.org:travis-linux-2 | |
system_info | |
Build system information | |
Build language: generic | |
Build group: stable |
1 required packages: | |
- Atom 0.4.2+ master | |
43 additional packages: | |
- ASTInterpreter 0.0.2+ master | |
- AbstractTrees 0.0.2 | |
- BinDeps 0.3.21+ master | |
- Blink 0.3.4+ master | |
- CodeTools 0.3.0+ master | |
- Codecs 0.1.5 | |
- ColorTypes 0.2.2 |
One session:
julia> function foo(z)
c = 100
max = 80
for n = 1:max
abs(z) ≥ 2 && return n-1
z = z^2 + c
end
return max
# Welcome to Juno! | |
# If you're new to Julia, you can find a tutorial here: | |
# http://link to a nice tutorial.com | |
# Generally, if there's something you'd like to do but don't know how, try | |
# searching in the command bar (Ctrl + Space) - almost all possible commands | |
# can be found there. | |
# To evaluate a line of code, press C + Enter¹. The result will be displayed |
cd(dirname(@__FILE__))
#multi.theme-june-dark .content { background: #172734; } | |
#multi.theme-june-dark .list .active, #multi.theme-june-dark .list li:hover { background:#172734; color:#eee; } | |
#multi.theme-june-dark .list .dirty { color:#f50; } | |
.cm-s-june-dark { background: #172734; color: #eee } | |
.cm-s-june-dark span.cm-keyword {color: #40B0E0; font-weight:bold;} /* if, while... */ | |
.cm-s-june-dark span.cm-atom {color: #5B90D4;} | |
.cm-s-june-dark span.cm-number {color: #009999;} | |
.cm-s-june-dark span.cm-def {color: #FC9906; font-weight: bold;} /* function definition */ | |
.cm-s-june-dark span.cm-variable {color: #eee;} |