All Questions
4 questions
0
votes
1
answer
681
views
Python 3: "next" attribute in str_iterator object
(not sure if telling the Python version is helpful so i will just leave that in the title)
hi again im asking a thing about the "next()" function.
this code is about checking whether your input ...
2
votes
1
answer
83
views
String Iteration Behaviour
var someString = new String('hi');
someString[Symbol.iterator] = function() {
return { // this is the iterator object, returning a single element, the string "bye"
next: function() {
if (...
1
vote
2
answers
134
views
How to iterate backwards through an array?
I want to take each value from the end of the array and iterate backwards to the middle of the array, adding each value to a string:
for (int x = testArray.length - 1; x > testArray.length/2; x--...
4
votes
3
answers
185
views
Iteration, find
Please help! How would i find and remove leading underscores by iterating through looking at the characters and counting the number of underscores before a valid character occurs. As well as iterating ...