Login
|
Signup
langref.org
-
clojure
and
fantom
add..
all
cpp
csharp
erlang
fsharp
go
groovy
haskell
java
ocaml
perl
php
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Lists
Access
Fetch an element of a list by index
Given the list
[One, Two, Three, Four, Five]
, fetch the third element (
'Three'
)
clojure
(nth '[One Two Three Four Five] 2)
(nth '[One Two Three Four Five] 2)
fantom
["One", "Two", "Three", "Four", "Five"][2]
class SolutionXX
{
Void main()
{
["One", "Two", "Three", "Four", "Five"][2]
}
}
fantom
["One", "Two", "Three", "Four", "Five"].get(2)
class SolutionXX
{
Void main()
{
["One", "Two", "Three", "Four", "Five"].get(2)
}
}
Submit a new solution for
clojure
or
fantom
There are 22 other solutions in
additional
languages (
cpp
,
csharp
,
erlang
,
fsharp
...)