Problem: Compound interest
Code: Compound+interest/tails_1643364497
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 | < | take | [int] | ||
* 1 | $ | = fstInt | int | ||
* 1 | `. | iterate while uniq | [int] | ||
** 2 | ;$ | = sndInt | int | ||
** 2 | + | add | int | A:int | |
*** 3 | / | divide | int | ||
**** 4 | * | multiply | int | ||
***** 5 | / | foldr1 | int | ||
****** 6 | ;$ | = ints | [int] | ||
****** 6 | @ | = B | int | C:int B:int | |
***** 5 | $ | = A | int | ||
**** 4 | ^ | pow | int | ||
***** 5 | ~ | auto = 10 | auto | ||
***** 5 | ~ | auto = 2 | auto | ||
*** 3 |
| implicit arg = A | int |