Time for an 2014 update…

This commit is contained in:
Ingy döt Net 2014-01-17 05:32:22 +00:00
parent 372c577f83
commit 09687c4926
2520 changed files with 34227 additions and 7318 deletions

View file

@ -1 +1,6 @@
bar(a,b,x...) = (a,b,x)
julia> print_each(X...) = for x in X; println(x); end
julia> print_each(1, "hello", 23.4)
1
hello
23.4

View file

@ -1,11 +1,10 @@
julia> bar(1,2)
(1,2,())
julia> args = [ "first", (1,2,17), "last" ]
3-element Array{Any,1}:
"first"
(1,2,17)
"last
julia> bar(1,2,3)
(1,2,(3,))
julia> bar(1,2,3,4)
(1,2,(3,4))
julia> bar(1,2,3,4,5,6)
(1,2,(3,4,5,6))
julia> print_each(args...)
first
(1,2,17)
last