Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
3
Task/Unicode-strings/Julia/unicode-strings-1.julia
Normal file
3
Task/Unicode-strings/Julia/unicode-strings-1.julia
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
julia> 四十二 = "voilà";
|
||||
julia> println(四十二)
|
||||
voilà
|
||||
2
Task/Unicode-strings/Julia/unicode-strings-2.julia
Normal file
2
Task/Unicode-strings/Julia/unicode-strings-2.julia
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
julia>println("\u2708")
|
||||
✈
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
function surround(string ; border = :default)
|
||||
|
||||
ve, ho, ul, ur, dl, dr =
|
||||
border == :bold ? ("\u2503","\u2501","\u250F","\u2513","\u2517","\u251b") :
|
||||
border == :double? ("\u2551","\u2550","\u2554","\u2557","\u255a","\u255d") :
|
||||
border == :dotted? ("\u254e","\u254c","\u250c","\u2510","\u2514","\u2518") :
|
||||
("\u2502","\u2500","\u250c","\u2510","\u2514","\u2518")
|
||||
|
||||
println(ul,ho^length(string),ur,"\n",
|
||||
ve, string ,ve,"\n",
|
||||
dl,ho^length(string),dr)
|
||||
end
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
sub prefix:<∛> ($#56655;) { $#56655; ** (1/3) }
|
||||
sub prefix:<∛> (\𝐕) { 𝐕 ** (1/3) }
|
||||
say ∛27; # prints 3
|
||||
|
|
|
|||
5
Task/Unicode-strings/Ruby/unicode-strings.rb
Normal file
5
Task/Unicode-strings/Ruby/unicode-strings.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
def Σ(array)
|
||||
array.inject(:+)
|
||||
end
|
||||
|
||||
puts Σ([4,5,6]) #=>15
|
||||
Loading…
Add table
Add a link
Reference in a new issue