valid_ranges: Checks whether a list of ranges partitions an entire sequence

Description Usage Arguments Value

Description

Checks whether a list of ranges partitions an entire sequence

Usage

1
valid_ranges(range_list, sequence_length)

Arguments

range_list

A list of pairs of values (a, b), where (a, b) represents a range from index a to index b

sequence_length

The sequence length, we want to check if the ranges together partition all of (1, sequence_length)

Value

TRUE if range_list partitions (1, sequence_length), error otherwise


sams25/rcombinator_old documentation built on May 28, 2019, 8:40 a.m.