No real need to explain, it would really help with organizing data. Please post your thoughts, and tell me what you think.
If there's a list like his one:
_
3
2
5
6
3
1
The block [ delete ( max ) of list [ ] ] would delete the 4th list entry (6), because it has the greatest value.
The block [ delete ( min ) of list [ ] ] would delete the last list entry (1), because it has the smallest value
Last edited by illusionist (2009-08-12 12:02:22)
Offline
I don't see what you would use the improvements for. What is the max and the min? When would you use the max and min?
Offline
Jonathanpb wrote:
I don't see what you would use the improvements for. What is the max and the min? When would you use the max and min?
Delete: The maximum/minimum value that a list contains.
Simple as that.
Offline
you could also make a different list that sorts the other list in order and finds the max or min.
Offline
m44 wrote:
you could also make a different list that sorts the other list in order and finds the max or min.
Takes too long. I need INSTANT sorting.
Offline
I don't understand. For the max., can't you just use All? And for the min., that would be 1, right? So just change the 1 to a number that you want to get rid of.
Offline
illusionist wrote:
Jonathanpb wrote:
I don't see what you would use the improvements for. What is the max and the min? When would you use the max and min?
Delete: The maximum/minimum value that a list contains.
Simple as that.
You didn't mention earlier, so I misunderstood. Anyway, how would you set the max and min? Would you have a block that says 'set [max or min goes here] to __' and 'change [max or min goes here] by __'?
Anyway, you could just use variables. And what do you call them? Max and min... there are your blocks.
Offline
http://scratch.mit.edu/projects/bhz/370119 auto sorts anything you input
Offline
Chrischb wrote:
I don't understand. For the max., can't you just use All? And for the min., that would be 1, right? So just change the 1 to a number that you want to get rid of.
I hope I got that right:
If there's a list like his one:
_
3
2
5
6
3
1
The block [ delete ( max ) of list [ ] ] would delete the 4th list entry (6), because it has the greatest value.
The block [ delete ( min ) of list [ ] ] would delete the last list entry (1), because it has the smallest value.
Offline
Jonathanpb wrote:
illusionist wrote:
Jonathanpb wrote:
I don't see what you would use the improvements for. What is the max and the min? When would you use the max and min?
Delete: The maximum/minimum value that a list contains.
Simple as that.You didn't mention earlier, so I misunderstood. Anyway, how would you set the max and min? Would you have a block that says 'set [max or min goes here] to __' and 'change [max or min goes here] by __'?
Anyway, you could just use variables. And what do you call them? Max and min... there are your blocks.
You obviously don't understand what I am saying. The maximum value of a list, is the highest number that it contains. The minimum value, is the lowest number. Make sense???
Chrischb wrote:
I don't understand. For the max., can't you just use All? And for the min., that would be 1, right? So just change the 1 to a number that you want to get rid of.
That doesn't make any sense. Do you know what a maximum and minimum are?
Last edited by illusionist (2009-08-12 12:01:40)
Offline
I think people are getting confused here. I get what illusionist and i'll try to explain:
Ok, here goes:
There is a list called: hi, for example.
And in that list, there is these values
Value number=value
________________________
1=3
2=5
3=5
4=8
5=1
_______________________
This block:[ delete ( max ) of list [hi] ] , would delete the greatest value-not value number-and in this case: 4=8.
This block:[ delete ( min ) of list [hi] ] , would delete the lowest value-not value number-and in this case: 5=1.
This block wont work if the values are not numbers.
Hope i made that clear.
Offline