Associative array/Creation: Difference between revisions
Content added Content deleted
(added C++) |
(Languages sorted) |
||
Line 92: | Line 92: | ||
@hash->{'key1', 'three'} = ('val1', -238.83); |
@hash->{'key1', 'three'} = ('val1', -238.83); |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
==[[Python]]== |
==[[Python]]== |
||
Line 138: | Line 119: | ||
Create a generic mapping function that applys a callback to elements in a list: |
Create a generic mapping function that applys a callback to elements in a list: |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ |