toolshed-0.15.0.1: Utilities used by other packages.

Safe HaskellSafe-Inferred
LanguageHaskell98

ToolShed.Data.List.Splits

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION

Synopsis

Types

Type-synonyms

Functions

splitsLeftFrom Source

Arguments

:: Int

Index.

-> [a]

The polymorphic input list from which the splits are generated, as the index is stepped left

-> [Split a]

The list of all required splits of the single input list.

  • Create the set of all Splits, migrating left from the specified location.
  • CAVEAT: init fails when fst has been reduced to null.

splitsRightFrom Source

Arguments

:: Int

Index.

-> [a]

The polymorphic input list from which the splits are generated, as the index is stepped right.

-> [Split a]

The list of all required splits of the single input list.

  • Create the set of all Splits, migrating right from the specified location.
  • CAVEAT: pattern-match against : fails, when snd has been reduced to null.