Qurak

Write a function that can return unevaluated

Workflow 6 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.

Step 1
f[n_Integer] := {n, n}

No output - this step sets something up for the next one.

Step 2
f[9]
Output
{9, 9}
Step 3
f[1.2]
Output
f[1.2]
Step 4
g[n_] := {n, n} /; OddQ[n]

No output - this step sets something up for the next one.

Step 5
g[3]
Output
{3, 3}
Step 6
g[4]
Output
g[4]

Functions used

Related recipes

All recipes · Function reference · Use this from an MCP client