-
Notifications
You must be signed in to change notification settings - Fork 0
/
definitions.yaml
43 lines (32 loc) · 984 Bytes
/
definitions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# apple: an apple is a red fruit!
# orange: an orange is an orange fruit!
# banana: bananas as gross, knock it off
# - term: apple
# definition: an apple is a red fruit!
# - term: orange
# definition: an orange is an orange fruit!
# - term: banana
# definition: bananas as gross, knock it off
# list of dictionaries
# [
# { term: apple, definition: 'red fruit'},
# { term: banana, definition: 'gross fruit'},
# { term: orange, definition: 'orange fruit'},
# ]
# lookup would be slack_dictionary[0] [t for t in slack_dictionary if t[term] == 'apple'][0]
apple:
definition: an apple is a red fruit!
emoji: apple
orange:
definition: an orange is an orange fruit!
emoji: orange
banana:
definition: bananas as gross, knock it off
emoji: person_frowning
# # dictionary of dictionaries
# {
# apple: {definition: 'red fruit'},
# banana: {definition: 'gross fruit'},
# orange: {definition: 'orange fruit'},
# }
# lookup would be slack_dictionary[apple]