Skip to main content

Module tuple_list

Module tuple_list 

Expand description

Tuple list implementation for type-safe tuple operations. Implements List for tuples where () is an empty list and (H, T) is a list with a head and tail.

use cel_runtime::{IntoTupleList, List};
let list = (String::from("first"), 7u8).into_tuple_list();
assert_eq!(list.head(), "first");
assert_eq!(list.reverse().reverse().len(), 2);

Traitsยง

IntoTupleList
Converts tuples into a List representation where () is empty and (H, T) is a cons cell.