Problem: Modular Exponentiation 2
Code: Modular+Exponentiation+2/tails_1646227277
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 |
| implicit foldl1 | int | ||
* 1 | : | append | [int] | ||
** 2 | 1 | integer | int | ||
** 2 | `@ | to base | [int] | ||
*** 3 | 2 | integer | int | ||
*** 3 | ;$ | = sndInt | int | ||
* 1 | % | modulus | int | B:int A:int | |
** 2 | * | multiply | int | ||
*** 3 | ^ | pow | int | ||
**** 4 | _ | = fstInt | int | ||
**** 4 | $ | = B | int | ||
*** 3 | ^ | pow | int | ||
**** 4 | @ | = A | int | ||
**** 4 | ~ | auto = 2 | auto | ||
** 2 | / | foldr1 | int | ||
*** 3 | ;@ | = ints | [int] | ||
*** 3 | @ | = C | int | D:int C:int |