%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/api/vendor/scrivo/highlight.php/test/detect/julia-repl/
Upload File :
Create Path :
Current File : /var/www/html/hr/api/vendor/scrivo/highlight.php/test/detect/julia-repl/default.txt

julia> function foo(x) x + 1 end
foo (generic function with 1 method)

julia> foo(42)
43

julia> foo(42) === 43.
false


Here we match all three lines of code:

julia> function foo(x::Float64)
           42. - x
       end
foo (generic function with 2 methods)

julia> for x in Any[1, 2, 3.4]
          println("foo($x) = $(foo(x))")
       end
foo(1) = 2
foo(2) = 3
foo(3.4) = 38.6


... unless it is not properly indented:

julia> function foo(x)
    x + 1
end


Ordinary Julia code does not get highlighted:

Pkg.add("Combinatorics")
abstract type Foo end

Zerion Mini Shell 1.0