Problem: Collatz Problem
Code: Collatz+Problem/darrenks_1640146100
Nibbles version: 0.2 | 0.21 | 0.22 | 0.23 | 0.24 | 0.25 | 1.00
Format: Compact | Simple | +Type | Table | JSON | .nbl (DeBruijn) | .nbl (names)
Depth | Lit | Desc | Type | Arg | Let |
---|---|---|---|---|---|
0 | `. | iterate while uniq | [int] | ||
* 1 | $ | = fstInt | int | ||
* 1 | ? | if/else | int | A:int | |
** 2 | % | modulus | int | ||
*** 3 | $ | = A | int | ||
*** 3 | ~ | auto = 2 | auto | ||
** 2 | + | add | int | B:int | |
*** 3 | * | multiply | int | ||
**** 4 | 3 | integer | int | ||
**** 4 | @ | = A | int | ||
*** 3 | ~ | auto = 1 | auto | ||
** 2 | / | divide | int | ||
*** 3 | $ | = A | int | ||
*** 3 | ~ | auto = 2 | auto |