HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Moduleoptics-extra-0.4.2.1Haskell2010

Optics.Extra.Internal.Vector

Synopsis
valueordinalNub
  1. :: Int

    strict upper bound

  2. -> [Int]

    ordinals

  3. -> [Int]

    unique, in-bound ordinals, in order seen

Return the the subset of given ordinals within a given bound and in order of the first occurrence seen.

Bound: 0 <= x < l

Example1 expression
ordinalNub 3 [-1,2,1,4,2,3][2,1]