Changeset 439 for EcnlProtoTool/trunk/mruby-2.1.1/benchmark/bm_so_lists.rb
- Timestamp:
- Jul 9, 2020, 8:51:43 AM (4 years ago)
- Location:
- EcnlProtoTool/trunk/mruby-2.1.1
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-2.1.1/benchmark/bm_so_lists.rb
r321 r439 18 18 # remove each individual item from right side of li3 and 19 19 # append to right side of li2 (reversing list) 20 while (not li3.empty?)20 until li3.empty? 21 21 li2.push(li3.pop) 22 22 end … … 25 25 li1.reverse! 26 26 # check that first item is now SIZE 27 if li1[0] != SIZE then27 if li1[0] != SIZE 28 28 p "not SIZE" 29 29 0 30 30 else 31 31 # compare li1 and li2 for equality 32 if li1 != li2 then32 if li1 != li2 33 33 return(0) 34 34 else
Note:
See TracChangeset
for help on using the changeset viewer.