HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleoptics-extra-0.4.2.1Haskell2010

Optics.Extra.Internal.Vector

  • 1 value
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]