dot-getSubscript: Get list subscript

Description Usage Arguments Value Examples

Description

Based on available list element names and subscript value determine index of the element requested

Usage

1
.getSubscript(lst, i)

Arguments

lst

list to search subsript for

i

character or numeric to determine final list index

Value

numeric index of the requested element in the list

Examples

1
2
l = list(a="a", b="b")
.getSubscript(l, 1) == .getSubscript(l, "a")

pepr documentation built on Jan. 13, 2021, 3:50 p.m.