Hash from two arrays: Difference between revisions

added ceylon
(added ceylon)
Line 349:
<lang csharp>for( int i = 0; i < arg_length; i++ ){
h[ arg_keys[i] ] = arg_values[i];
}</lang>
 
=={{header|Ceylon}}==
<lang ceylon>shared void run() {
value keys = [1, 2, 3];
value items = ['a', 'b', 'c'];
value hash = map(zipEntries(keys, items));
}</lang>
 
Anonymous user