Bug? <Solved> [PyBridge] PyBridge.bas (in b4xlib)

Daestrum

Expert
Licensed User
Longtime User
Line 322 has </code></code> which stops the hint from showing in the IDE for 'Lambda'.
 

Daestrum

Expert
Licensed User
Longtime User
line 318 hs <code><code. - but you probably spotted that from the above.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Yes, it is fixed. Thank you for reporting. There was actually another error with the quotes and ampersand.

It should be:
B4X:
'Creates a lambda function. This is equivalent to calling RunStatement(&quot;lambda &quot; &amp; Code).
'<code>Dim Numbers As PyWrapper = Py.WrapObject(Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))
'Numbers = Py.Map_(Py.Lambda("x: 2 * x"), Numbers).ToList
'Numbers.Print
'Numbers = Py.Filter(Py.Lambda("x: x < 10"), Numbers).ToList
'Numbers.Print2("even numbers smaller than 10:", "", False)</code>
 
Top