use urbit_ob::*; fn all_planets(star: u16) -> Vec { let star_val: u32 = star as u32; let mut p_names: Vec = Vec::with_capacity(0xffff); for value in 0x0001..=0xffff { let p_val: u32 = (value << 16) | star_val; let p_name = patp(p_val); p_names.push(p_name); } p_names } fn main() { let star_val: u16 = patp2int("~rondev").unwrap(); println!("{:?}", all_planets(star_val).first().unwrap()) }