hw-rankselect-base-0.3.4.1: Rank-select base

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.RankSelect.Base.Rank

Contents

Synopsis

Rank & Select

class Eq a => Rank v a where Source #

Methods

rank Source #

Arguments

:: a

The symbol

-> v

The bitstring

-> Count

The prefix length

-> Count 

Find the number of occurences of the given symbol in the prefix of the supplied bitstring of the given length

Instances
Rank [Bool] Bool Source # 
Instance details

Defined in HaskellWorks.Data.RankSelect.Base.Rank

Methods

rank :: Bool -> [Bool] -> Count -> Count Source #