Header menu logo Rhino.Scripting

AutoOpenRsUtils Module

Functions and values

Function or value Description

x |>! f

Full Usage: x |>! f

Parameters:
    x : 'a
    f : 'a -> 'b

Returns: 'a
Modifiers: inline
Type parameters: 'a, 'b

Apply function, like |> , but ignore result. Return original input. let inline (|>!) x f = f x |> ignore ; x Be aware of correct indenting see: https://stackoverflow.com/questions/64784154/indentation-change-after-if-else-expression-not-taken-into-account

x : 'a
f : 'a -> 'b
Returns: 'a

a |? b

Full Usage: a |? b

Parameters:
    a : 'T
    b : 'T

Returns: 'T
Modifiers: inline
Type parameters: 'T

Null coalescing: Returns the value on the left unless it is null, then it returns the value on the right.

a : 'T
b : 'T
Returns: 'T

deAt

Full Usage: deAt

Returns: CultureInfo

German culture (used for float parsing).

Returns: CultureInfo

enUs

Full Usage: enUs

Returns: CultureInfo

American English culture (used for float parsing).

Returns: CultureInfo

isNanOrInf f

Full Usage: isNanOrInf f

Parameters:
Returns: bool
Modifiers: inline
Type parameters: 'T

Test is a floating point number (with Measure) is NaN (Not a Number) or Infinity.

f : float<'T>
Returns: bool

notNull value

Full Usage: notNull value

Parameters:
    value : 'T

Returns: bool
Modifiers: inline
Type parameters: 'T

Returns false if the value is null. The opposite of isNull

value : 'T
Returns: bool

parseFloatEnDe x

Full Usage: parseFloatEnDe x

Parameters:
    x : string

Returns: float

First tries to parses float with En-Us CultureInfo (period as decimal separator). If this fails tries to parse parses float with De-At CultureInfo (comma as decimal separator).

x : string
Returns: float

t1 (a, arg1, arg1)

Full Usage: t1 (a, arg1, arg1)

Parameters:
    a : 'a
    arg1 : 'b
    arg2 : 'c

Returns: 'a
Modifiers: inline
Type parameters: 'a, 'b, 'c

Get first element of Triple (Tuple of three elements)

a : 'a
arg1 : 'b
arg2 : 'c
Returns: 'a

t2 (arg1, b, arg1)

Full Usage: t2 (arg1, b, arg1)

Parameters:
    arg0 : 'a
    b : 'b
    arg2 : 'c

Returns: 'b
Modifiers: inline
Type parameters: 'a, 'b, 'c

Get second element of Triple (Tuple of three elements)

arg0 : 'a
b : 'b
arg2 : 'c
Returns: 'b

t3 (arg1, arg1, c)

Full Usage: t3 (arg1, arg1, c)

Parameters:
    arg0 : 'a
    arg1 : 'b
    c : 'c

Returns: 'c
Modifiers: inline
Type parameters: 'a, 'b, 'c

Get third element of Triple (Tuple of three elements)

arg0 : 'a
arg1 : 'b
c : 'c
Returns: 'c

toDegrees radians

Full Usage: toDegrees radians

Parameters:
Returns: float
Modifiers: inline
Type parameters: 'T

Converts Angels from Radians to Degrees.

radians : float<'T>
Returns: float

toRadians degrees

Full Usage: toRadians degrees

Parameters:
Returns: float
Modifiers: inline
Type parameters: 'T

Converts Angels from Degrees to Radians.

degrees : float<'T>
Returns: float

tryParseFloatEnDe x

Full Usage: tryParseFloatEnDe x

Parameters:
    x : string

Returns: float option

First tries to parses float with En-Us CultureInfo (period as decimal separator), if this fails tries to parse parses float with De-At CultureInfo (comma as decimal separator).

x : string
Returns: float option

Type extensions

Type extension Description

this.DoesNotContain

Full Usage: this.DoesNotContain

Parameters:
    item : 'T

Returns: bool

Extended Type: HashSet

item : 'T
Returns: bool

this.GetNeg

Full Usage: this.GetNeg

Parameters:
    index : int

Returns: 'T

Gets an item in the ResizeArray by index. Allows for negative index too ( -1 is last item, like Python)

Extended Type: List

index : int
Returns: 'T

this.Last

Full Usage: this.Last

Parameters:
    () : unit

Returns: 'T

Get (or set) the last item in the Array. equal to this.[this.Length - 1] (this is an Extension Member from FsEx.ExtensionsArray)

Extended Type: []

() : unit
Returns: 'T

this.Last

Full Usage: this.Last

Returns: 'T

Get (or set) the last item in the Array. equal to this.[this.Length - 1] (this is an Extension Member from FsEx.ExtensionsArray)

Extended Type: []

Returns: 'T

this.Last

Full Usage: this.Last

Parameters:
    v : 'T

Get (or set) the last item in the Array. equal to this.[this.Length - 1] (this is an Extension Member from FsEx.ExtensionsArray)

Extended Type: []

v : 'T

this.Last

Full Usage: this.Last

Get (or set) the last item in the Array. equal to this.[this.Length - 1] (this is an Extension Member from FsEx.ExtensionsArray)

Extended Type: []

Type something to start searching.