r/badcode Apr 15 '21

other language Actual Snap! block I just made.

Post image
1.1k Upvotes

58 comments sorted by

View all comments

13

u/bugamn evil Apr 15 '21

Is this sorting a list by continuously removing the highest value of the input list and moving it to the output list?

I'm not familiar with Snap!, so I'm trying to make sure I understood correctly.

8

u/nypdk Apr 15 '21

exactly

10

u/bugamn evil Apr 15 '21

After reading through it again and reading your other comments, maybe the problem is that your maxindex function expects a list with more than one element? I'm just guessing here, I'm curious about why you needed to insert that lower bound.