Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
1use plugin::prelude::*; 2 3#[bind] 4pub fn sum_lengths(strings: Vec<String>) -> usize { 5 let mut total = 0; 6 for string in strings { 7 total += string.len(); 8 } 9 return total; 10} 11 12pub fn main() -> () { 13 () 14}