Macaulay2 » Documentation
Packages » Permutations :: records
next | previous | forward | backward | up | index | toc

# records -- computes the saliances of a permutation

- Usage:
    `records w`
- Inputs:
  - w, a permutation,
- Outputs:
  - a list,

## Description

A permutation $p$ has a record at $i$ if $p(j) < p(i)$ for all $j < i$.

    i1 : p = permutation {3,1,2,5,4}

    o1 = Permutation{3, 1, 2, 5, 4}

    o1 : Permutation

    i2 : saliances p

    o2 = {4, 5}

    o2 : List

## See also

- ascendingRuns -- computes the ascending runs of a permutation
- ascents -- computes the ascents of a permutation
- descendingRuns -- computes the descending runs of a permutation
- descents -- computes the descents of a permutation
- exceedances -- computes the exceedances of a permutation
- saliances -- computes the saliances of a permutation

## Ways to use records:

- `records(Permutation)`

## For the programmer

The object records is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Permutations/Documentation/mainDocs.m2:589:0.