rio-0.0.3.0: A standard library for Haskell

Safe HaskellSafe
LanguageHaskell2010

RIO.List

Description

List. Import as:

import qualified RIO.List as L

Synopsis

Documentation

module Data.List

stripSuffix Source #

Arguments

:: Eq a 
=> [a]

suffix

-> [a] 
-> Maybe [a] 

Remove the suffix from the given list, if present

Since: 0.0.0

dropPrefix Source #

Arguments

:: Eq a 
=> [a]

prefix

-> [a] 
-> [a] 

Drop prefix if present, otherwise return original list.

Since: 0.0.0.0

dropSuffix Source #

Arguments

:: Eq a 
=> [a]

suffix

-> [a] 
-> [a] 

Drop prefix if present, otherwise return original list.

Since: 0.0.0.0