In [1]:
@doc filter


Out[1]:
filter(function, collection)

Return a copy of collection, removing elements for which function is false. For associative collections, the function is passed two arguments (key and value).


In [5]:
using HTTPClient.HTTPC

In [8]:
@doc post


Out[8]:

No documentation found.

HTTPClient.HTTPC.post is a generic Function.

# 3 methods for generic function "post":
post(url::AbstractString, data::AbstractString) at /Users/utensil/.julia/v0.4/HTTPClient/src/HTTPC.jl:542
post(url::AbstractString, data) at /Users/utensil/.julia/v0.4/HTTPClient/src/HTTPC.jl:402
post(url::AbstractString, data, options::HTTPClient.HTTPC.RequestOptions) at /Users/utensil/.julia/v0.4/HTTPClient/src/HTTPC.jl:402

In [2]:
julia_doc_home = abspath(joinpath(JULIA_HOME, "../share/doc/julia"))


Out[2]:
"/opt/homebrew-cask/Caskroom/julia/0.4.5/Julia-0.4.5.app/Contents/Resources/julia/share/doc/julia"

In [3]:
cd(julia_doc_home)

In [4]:
run(`open html/index.html`)

In [10]:
examples = filter(r"\.jl$", readdir(joinpath(julia_doc_home, "examples")))


Out[10]:
14-element Array{ByteString,1}:
 "bubblesort.jl" 
 "dictchannel.jl"
 "hpl.jl"        
 "juliatypes.jl" 
 "lru.jl"        
 "lru_test.jl"   
 "modint.jl"     
 "ndgrid.jl"     
 "queens.jl"     
 "quine.jl"      
 "staged.jl"     
 "time.jl"       
 "typetree.jl"   
 "wordcount.jl"  

In [13]:
for example_file in examples
    full_path = joinpath(julia_doc_home, "examples", example_file)
    # println(readall(open(full_path)))
    println("Running $example_file\n")
    
    include(full_path)
end


Running bubblesort.jl

Running dictchannel.jl

Running hpl.jl

Running juliatypes.jl

WARNING: deprecated syntax "size (" at /opt/homebrew-cask/Caskroom/julia/0.4.5/Julia-0.4.5.app/Contents/Resources/julia/share/doc/julia/examples/hpl.jl:56.
Use "size(" instead.

WARNING: deprecated syntax "size (" at /opt/homebrew-cask/Caskroom/julia/0.4.5/Julia-0.4.5.app/Contents/Resources/julia/share/doc/julia/examples/hpl.jl:77.
Use "size(" instead.
Running lru.jl

Running lru_test.jl

WARNING: redefining constant AnyT
WARNING: redefining constant TupleName
WARNING: redefining constant TupleT
WARNING: redefining constant tndict
WARNING: redefining constant menagerie
WARNING: replacing module LRUExample
Running modint.jl

Running ndgrid.jl

Running queens.jl

Running quine.jl

x="println(\"x=\$(repr(x))\\n\$x\")"
println("x=$(repr(x))\n$x")
Running staged.jl

WARNING: replacing module ModInts
Running time.jl

Running typetree.jl

WARNING: replacing module Time
Running wordcount.jl

WARNING: replacing module TypeTrees

In [ ]: