Convert a choice from a list of options to a lofi bit representation

choice_to_lofi(choice, options)

lofi_to_choice(lofi, options)

Arguments

choice

value to convert to lofi representation

options

the reference list of options it should be coded from

lofi

low-bit representation

Value

low-bit representation i.e. the index of the choice in the list of options