micropython: add micropython component
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# test subclassing a native type which can be iterated over
|
||||
|
||||
class mymap(map):
|
||||
pass
|
||||
|
||||
m = mymap(lambda x: x + 10, range(4))
|
||||
print(list(m))
|
Reference in New Issue
Block a user