Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring Search List Item

mylist = [["one",1],
          ["two",2],
          ["three",3]]

see find(mylist,"two",1) + nl           # print 2
see find(mylist,2,2) + nl               # print 2
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #Search #List #Item
ADD COMMENT
Topic
Name
5+3 =