cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

While with empty placeholder

ValeryOchkov
24-Ruby IV

While with empty placeholder

Sometimes we need to have a loop with the output from the middle of the cycle or and of the cycle (the repeat cycle).
To do this, we have to create a loop while with 1 (not 0) as the top operand and with break, continue or return operators.

See please the picture:

InfLoop.png

4 REPLIES 4

Good idea Valery.

I would also like to return a variable with x numbers of rows or columns, with empty placeholders for the user to input.

Mike

Mike Armstrong wrote:

Good idea Valery.

I would also like to return a variable with x numbers of rows or columns, with empty placeholders for the user to input.

Mike

Thanks!

One more idea!

SparseMatrix.png

Valery Ochkov wrote:

One more idea!

SparseMatrix.png

Not so sure about this Valery - it is inconsistent with the existing form:

Matrix.PNG

Alan

Maybe in Valerys second example the undefined elements should come in as zeros?

Mike

Announcements

Top Tags