Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 475 Bytes

reading-values-from-vectors-by-index.md

File metadata and controls

21 lines (14 loc) · 475 Bytes

Reading values from a Vector by Index

We can read values in a vector by the index, the location each value is in the vector, starting from zero.

The nth function gives us the value at a specific location in the vector.

(nth [5 10 15] 1)
;=> 10

How many values in our vector

count gives us the number of items in a vector.

Note::Extracting values from vectors

Create some vectors and count the values in a vector

()