Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring Access List Items by String Index

aList = [ :one = 1 , :two = 2 , :three = 3 ]
see aList["one"] + nl +
    aList["two"] + nl +
    aList["three"] + nl # print 1 2 3
see aList[1]            # print one 1
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #Access #List #Items #String #Index
ADD COMMENT
Topic
Name
4+4 =