We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f59c36 commit 3de4264Copy full SHA for 3de4264
p.q
@@ -32,6 +32,7 @@ embedPy:{[f;x]
32
x0~`.;f;x0~`;py2q f; / extract as foreign or q
33
wrap pyfunc[f]. x]} / default, call
34
unwrap:{$[i.isw x;x`.;x]}
35
+xunwrap:{$[0=t:type x;.z.s each x;98=t;flip .z.s flip x;99=t;.z.s[key x]!.z.s value x;unwrap x]}
36
wfunc:{[f;x]r:wrap f x 0;$[count x:1_x;.[;x];]r}
37
i.wf:{[f;x]embedPy[f;x]}
38
wrap:ce i.wf@
0 commit comments