Hacker symbol

November 13, 2019 ~ 1 min read

Slices


// This makes an array
let a = [1, 2, 3, 4, 5];
// This makes a slice, notice the space around the ..
let nice_slice = &a[1 .. 4];

Sebastian BolaƱos

Hi, I'm Sebastian. I'm a software developer from Costa Rica. You can follow me on Twitter. I enjoy working on trustless systems.