File tree Expand file tree Collapse file tree 1 file changed +56
-3
lines changed Expand file tree Collapse file tree 1 file changed +56
-3
lines changed Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments