toolshed-0.14.0.0: Utilities used by other packages.

Safe HaskellSafe-Inferred

ToolShed.Data.List.Splits

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION

Synopsis

Types

Type-synonyms

Functions

splitsLeftFromSource

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.

splitsRightFromSource

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.