Copyright | (C) 2014-2015 Edward Kmett and Eric Mertens |
---|---|

License | BSD-style (see the file LICENSE) |

Maintainer | Edward Kmett <ekmett@gmail.com> |

Stability | provisional |

Portability | non-portable |

Safe Haskell | Safe |

Language | Haskell98 |

This module provides utility functions on lists used by the library implementation.

- ordinalNub :: Int -> [Int] -> [Int]

# Documentation

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

Bound: `0 <= x < l`

`>>>`

[2,1]`ordinalNub 3 [-1,2,1,4,2,3]`