# Rust, <strike>152</strike> 142 bytes
    |n|{for i in 0..n{println!("");if i%2==1{print!("<");for _ in 1..i{print!("-");}}else{for _ in 1..i{print!("-");}print!(">");}}println!("");};

Down from 152 bytes to 142 bytes thanks to Pavel.