aern2-mp-0.2.15.1: Multi-precision ball (interval) arithmetic
Copyright(c) Michal Konecny
LicenseBSD3
Maintainermikkonecny@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

AERN2.Select

Description

Generic multivalued select operation

Documentation

class IsBool (SelectType k) => CanSelect k where Source #

Associated Types

type SelectType k Source #

Must be Bool or similar

Methods

select Source #

Arguments

:: k 
-> k 
-> SelectType k

True means that the first computation succeeded.

Execute two lazy computations "in parallel" until one of them succeeds.

Instances

Instances details
CanSelect Kleenean Source # 
Instance details

Defined in AERN2.Select

Associated Types

type SelectType Kleenean Source #

CanSelect (CN Kleenean) Source # 
Instance details

Defined in AERN2.Select

Associated Types

type SelectType (CN Kleenean) Source #

class CanSelectCountable k where Source #

Associated Types

type SelectCountableType k Source #

Must be Integer or similar

Methods

selectCountable :: (Integer -> k) -> SelectCountableType k Source #

Execute a sequence of lazy computations "in parallel" until one of them succeeds and return the index of a succeeding computation.

Instances

Instances details
CanSelectCountable Kleenean Source # 
Instance details

Defined in AERN2.Select

Associated Types

type SelectCountableType Kleenean Source #

CanSelectCountable (CN Kleenean) Source # 
Instance details

Defined in AERN2.Select

Associated Types

type SelectCountableType (CN Kleenean) Source #