Created
April 29, 2015 00:26
-
-
Save StoneCypher/771db2784858c30dc2fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(record_joy). | |
| -export([ | |
| datum/0, | |
| fetch/0 | |
| ]). | |
| -record(outer, { contained }). | |
| -record(inner, { value }). | |
| datum() -> | |
| I = #inner{ value=5 }, | |
| O = #outer{ contained=I }, | |
| O. | |
| fetch() -> | |
| D = datum(), | |
| (D#outer.contained)#inner.value. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment