How to write a lambda-returning function?

Like this one which should yield 8:
image

The ring + call combination I tried did not work. [EDIT: shown below]

image

image

the plus (3) should be unringified
image

That worked, thanks. Never saw unringify before :~)

What did that do? Is it because the call added its own lambda-like wrapper around the lambda returned by plus?

Are there available primitive blocks to do what the unringify menu item does?

yes, it's because call automatically puts a gray ring around whatever you put in it, unless it's a variable.

also, the call block unringifies rings
untitled script pic
untitled script pic

Just
untitled script pic - 2021-12-30T021245.757
untitled script pic - 2021-12-30T021309.248

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.