DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUST
rust how to access elements of an array
fn
main
(
)
{
let
a
=
[
1
,
2
,
3
,
4
,
5
]
;
let
first
=
a
[
0
]
;
let
second
=
a
[
1
]
;
}
Source by doc.rust-lang.org #
PREVIOUS
NEXT
Tagged:
#rust
#access
#elements
#array
ADD COMMENT
Topic
COMMENT
Name
6+8 =
Submit