eval
Log in

First element

100 points

Implement head, which returns a reference to the first element of a slice.

Required signature

pub fn head(list: &[i32]) -> &i32

Visible tests

Your solution

Log in to submit a solution.