slist-0.2.0.0: Sized list
Copyright(c) 2021 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
StabilityStable
PortabilityPortable
Safe HaskellNone
LanguageHaskell2010

Slist.Containers

Contents

Description

Useful combinators to work with the data structures from containers package and Slist together.

Since: 0.2.0.0

Synopsis

Map

mapToVals :: Map k v -> Slist v Source #

O(n). Returns a Slist of all values of the map in the ascending order of their keys.

Since: 0.2.0.0

mapToKeys :: Map k v -> Slist k Source #

O(n). Returns a Slist of all keys of the map in the ascending order.

Since: 0.2.0.0

mapToPairs :: Map k v -> Slist (k, v) Source #

O(n). Returns a Slist of all key-value pairs of the map in the ascending order of their keys.

Since: 0.2.0.0

Set

setToSlist :: Set a -> Slist a Source #

O(n). Returns a Slist of all elements of the set in the ascending order.

Since: 0.2.0.0