| |
| | Gmane -- Mail To News And Back Again |
 | | Its fixes a nasty bug that prohibited partially applied functions from being executed correctly under the interpreter by extension methods. |
 | | Retrieving from a Hash in Insertion Order\n\n"; SymbolTable food_color = new SymbolTable(); Vector order = new Vector(); String[] names = {"Apple","Banana","Lemon","Carrot"}; String[] values = {"red", "yello","yellow","orange"}; // Fill the food_color hash for(int i=0;iHash in Insertion Order order.elements().each(outputNV(?,food_color)); } { print "\n# 5.7. |
 | | Hashes with Multiple Values Per Key\n\n"; SymbolTable ttys = new SymbolTable(); String[] names = {"Dave","Stefano","Cory"}; String[][] values = {{"tty1", "tty2","tty3"},{"tty4","tty5"},{"tty6"}}; // Fill the ttys hash fill(ttys,names,values); // Output the ttys hash sorted by username Vector v = new Vector(); ttys.keys().each(v.add); v.sort(strcmp); v.elements().each(outputNA(?,ttys)); } { print "\n# 5.8. |
| article.gmane.org /gmane.comp.lang.moto.user/35 (323 words) |
|