MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / should_flatten

Function should_flatten

nlp_class3/memory_network.py:104–105  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

102
103# recursively flatten a list
104def should_flatten(el):
105 return not isinstance(el, (str, bytes))
106
107def flatten(l):
108 for el in l:

Callers 1

flattenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected