+ multimethod
Methods
- +(a:Real, b:Real)
Addition
- +(a:Arr, b:Arr)
Array concatenation. Returns
ArrExample
[1,2]+[3,4] # [1,2,3,4]
- +(a:Int, b:Int)
Addition
- +(f:Fun, g:Fun) Source: stdlib.ngs:702
Compose functions Returns
Fun f(g(...))Example
F reject(h:Hash, predicate:Fun) h.filter(not + predicate)
- +(a:Eachable1, b:Eachable1) Source: stdlib.ngs:1813
Undocumented Returns
a and b concatenated
- +(a:Set, b:Set) Source: stdlib.ngs:2221
Set union Returns
Set
- +(s1:Str, s2:Str) Source: stdlib.ngs:2879
Concatenate strings Returns
New StrExample
"ab" + "cd" # "abcd"
- +(a:Hash, b:Hash) Source: stdlib.ngs:4074
Add Hashes. Builds new hash with key-value pairs from both a and b. If same key is present in both a and b, the value from b is used. Returns
HashExample
{'a': 1, 'b': 2, 'c': 3} + {'b': 20, 'd': 40} # {'a': 1, 'b': 20, 'c': 3, 'd': 40}
- +(s:Str, a:Eachable1) Source: stdlib.ngs:5009
Prepend each line in a with s Returns
Type of ret is same as type of aExample
"a " + ["1", "2"] # ["a 1", "a 2"]
- +(a:Eachable1, s:Str) Source: stdlib.ngs:5019
Append s to each line in a Returns
Type of ret is same as type of aExample
["1", "2"] + " a" # ["1 a", "2 a"]
- +(a:Path, b:Str) Source: stdlib.ngs:5754
Concatenate Returns
Path
- +(a:Str, b:Path) Source: stdlib.ngs:5758
Concatenate Returns
Path
- +(t:Time, d:Duration) Source: stdlib.ngs:8281
Undocumented Returns
Time
- +(d1:Duration, d2:Duration) Source: stdlib.ngs:8283
Undocumented
- +(a:Int, b:Real) Source: stdlib.ngs:8832
Undocumented
- +(a:Real, b:Int) Source: stdlib.ngs:8833
Undocumented