Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let x = [1.0,2.0,3.0,4.0];
- let x = &x[..];
- dbg!(x);
- let x: &[f32] = &x[..2];
- dbg!(x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement