Line 322 has </code></code> which stops the hint from showing in the IDE for 'Lambda'.
Daestrum Expert Licensed User Longtime User Feb 24, 2025 #1 Line 322 has </code></code> which stops the hint from showing in the IDE for 'Lambda'.
Daestrum Expert Licensed User Longtime User Feb 24, 2025 #2 line 318 hs <code><code. - but you probably spotted that from the above.
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2025 #3 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("lambda " & 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>
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("lambda " & 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>