Permutation Module

Functions and values

Function or value Description

Permutation.identity k

Full Usage: Permutation.identity k

Parameters:
    k : int

Returns: int
k : int
Returns: int

Permutation.invalidArg arg msg

Full Usage: Permutation.invalidArg arg msg

Parameters:
    arg : string
    msg : string

Returns: 'a
arg : string
msg : string
Returns: 'a

Permutation.inverse size p

Full Usage: Permutation.inverse size p

Parameters:
    size : int
    p : int -> int

Returns: int -> int
size : int
p : int -> int
Returns: int -> int

Permutation.ofArray arr

Full Usage: Permutation.ofArray arr

Parameters:
    arr : int[]

Returns: int -> int
arr : int[]
Returns: int -> int

Permutation.ofFreshArray arr

Full Usage: Permutation.ofFreshArray arr

Parameters:
    arr : int[]

Returns: int -> int
arr : int[]
Returns: int -> int

Permutation.ofPairs mappings

Full Usage: Permutation.ofPairs mappings

Parameters:
    mappings : seq<int * int>

Returns: int -> int
mappings : seq<int * int>
Returns: int -> int

Permutation.reversal size

Full Usage: Permutation.reversal size

Parameters:
    size : int

Returns: int -> int
size : int
Returns: int -> int

Permutation.rotation size distance

Full Usage: Permutation.rotation size distance

Parameters:
    size : int
    distance : int

Returns: int -> int
size : int
distance : int
Returns: int -> int

Permutation.swap n m k

Full Usage: Permutation.swap n m k

Parameters:
    n : int
    m : int
    k : int

Returns: int
n : int
m : int
k : int
Returns: int