/ multimethod

Methods

/(a:Real, b:Real)
Division
/(a:Int, b:Int)
Division
/(x:Any, mapper:Fun) Source: stdlib.ngs:604
Map operator. Same as calling x.map(mapper)

Example

[1,2,3,4] / F(x) x * 10
/(a:Str, b:Str) Source: stdlib.ngs:4204
Concatenate two path parts using STDLIB_PATH_SEP (currently "/") but should be platform-specific later.

Returns

Str

Example

mydir="tmp"
mydir / "myfile"  # "tmp/myfile"
/(a:Str, b:Str) Source: stdlib.ngs:4211
Concatenate two path parts using STDLIB_PATH_SEP (currently "/") but should be platform-specific later.

Returns

Str

Example

mydir="tmp/"
mydir / "myfile"  # "tmp/myfile"
/(a:Str, b:Str) Source: stdlib.ngs:4220
Concatenate two path parts using STDLIB_PATH_SEP (currently "/") but should be platform-specific later.

Returns

Str

Example

mydir="./"
mydir / "myfile"  # "myfile"
/(a:Path, b:Path) Source: stdlib.ngs:4227
Concatenate two Path-s using /(a:Str, b:Str)

Returns

Path

Example

Path("tmp") / Path("v8")  # <Path path=tmp/v8>
/(a:Path, b:Str) Source: stdlib.ngs:4232
Concatenate two Path-s using /(a:Str, b:Str)

Returns

Path

Example

Path("tmp") / "v8"  # <Path path=tmp/v8>