1234567891011121314151617181920 |
- discard """
- output: '''is
- finally
- nice!'''
- """
- import tables
- const
- foo = {"ah": "finally", "this": "is", "possible.": "nice!"}.toTable()
- # protect against overly smart compiler:
- var x = "this"
- echo foo[x]
- x = "ah"
- echo foo[x]
- x = "possible."
- echo foo[x]
|