Composite Opcodes

Composite Opcodes#

The composite opcodes combine multiple operations into higher-level constructs. These opcodes enable conditional logic, function composition, subject manipulation, and computation dispatch, which are affordances necessary for practical programming in Nock.

Opcode

Name

Signature

Purpose

6

If

[6 b c d]

Conditional branch

7

Compose

[7 b c]

Sequential/pipe

8

Extend

[8 b c]

Pin to subject

9

Invoke

[9 b c]

Core arm call

11

Hint

[11 b c]/[11 [b c] d]

Interpreter hint