We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 616ea27 commit 682398fCopy full SHA for 682398f
1 file changed
wolframclient/language/array.py
@@ -3,6 +3,7 @@
3
from wolframclient.exception import WolframLanguageException
4
from wolframclient.serializers.wxfencoder import constants
5
from wolframclient.utils.encoding import concatenate_bytes
6
+from wolframclient.utils.functional import map
7
8
try:
9
from collections.abc import Sequence
@@ -27,7 +28,7 @@ def _valid_type_or_fail(self, type):
27
28
)
29
30
def tobytes(self):
- return concatenate_bytes(self.struct.pack(el) for el in self.array)
31
+ return concatenate_bytes(map(self.struct.pack, self.array))
32
33
def __getitem__(self, k):
34
return self.array[k]
0 commit comments