Skip to content

Commit ddd04fd

Browse files
committedFeb 9, 2020
Lambda Config
1 parent 2372319 commit ddd04fd

File tree

1 file changed

+56
-3
lines changed

1 file changed

+56
-3
lines changed
 

‎Lambda Map.ipynb

+56-3
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,63 @@
108108
},
109109
{
110110
"cell_type": "code",
111-
"execution_count": null,
111+
"execution_count": 8,
112112
"metadata": {},
113-
"outputs": [],
114-
"source": []
113+
"outputs": [
114+
{
115+
"data": {
116+
"text/plain": [
117+
"[2, 4, 6, 8, 10]"
118+
]
119+
},
120+
"execution_count": 8,
121+
"metadata": {},
122+
"output_type": "execute_result"
123+
}
124+
],
125+
"source": [
126+
"list(map(lambda var: var*2,seq))"
127+
]
128+
},
129+
{
130+
"cell_type": "code",
131+
"execution_count": 9,
132+
"metadata": {},
133+
"outputs": [
134+
{
135+
"data": {
136+
"text/plain": [
137+
"<filter at 0x1f838180b08>"
138+
]
139+
},
140+
"execution_count": 9,
141+
"metadata": {},
142+
"output_type": "execute_result"
143+
}
144+
],
145+
"source": [
146+
"filter(lambda item: item%2 == 0,seq)"
147+
]
148+
},
149+
{
150+
"cell_type": "code",
151+
"execution_count": 10,
152+
"metadata": {},
153+
"outputs": [
154+
{
155+
"data": {
156+
"text/plain": [
157+
"[2, 4]"
158+
]
159+
},
160+
"execution_count": 10,
161+
"metadata": {},
162+
"output_type": "execute_result"
163+
}
164+
],
165+
"source": [
166+
"list(filter(lambda item: item%2 == 0,seq))"
167+
]
115168
}
116169
],
117170
"metadata": {

0 commit comments

Comments
 (0)
Please sign in to comment.