use sui::linked_table::{Self, LinkedTable};
...
let table_x = linked_table::new(ctx)
...
let key_i = linked_table::front(&table_x); // Returns the key for the first element in the table, or None if the table is empty
while(option::is_some(key_i)) {
let k = *option::borrow(key_i); // option::borrow - returns an immutable reference to the value inside the Option
let v = linked_table::borrow_mut(&mut table_x, k);
*v = 0; // update the u64 value of the key k to 0 in the LinkedTable table_x
key_i = linked_table::next(&table_x, k);
}
Credit to @josemvcerqueira of Interest Protocol for pointing me in the right direction on Telegram