Problem: Arithmetic derivative
Code: Arithmetic+derivative/tails_1696492229
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 map | [[chr]] | ||
* 1 | % | split (remove empties) | [[chr]] | ||
** 2 | @ | = fstLine | [chr] | ||
** 2 | ~ | auto = words | auto | ||
* 1 | ? | if/else | [chr] | B:[chr] A:[chr] | |
** 2 | == | equal? | int | ||
*** 3 | $ | = B | [chr] | ||
*** 3 | ; | save | int | C:[chr] | D:int |
**** 4 | `r | read int | int | ||
***** 5 | @ | = B | [chr] | ||
** 2 | + | sum | int | E:int | N:[int] |
*** 3 | `. | iterate while uniq | [int,int] | ||
**** 4 | ~ | tuple | int,int | ||
***** 5 | 0 | integer | int | ||
***** 5 | @ | = D | int | ||
**** 4 |
| implicit tuple | int,int | G:int F:int | |
***** 5 | ? | if/else | int | M:int | |
****** 6 | - | subtract | int | ||
******* 7 | ^ | pow | int | ||
******** 8 | @ | = F | int | ||
******** 8 | ~ | auto = 2 | auto | ||
******* 7 | ~ | auto = 1 | auto | ||
****** 6 | ~ | tuple | int,int | H:int | |
******* 7 | / | divide | int | ||
******** 8 | ;@ | = D | int | ||
******** 8 | ; | save | int | L:int | |
********* 9 | / | foldr1 | int | ||
********** 10 | | | filter | [int] | ||
*********** 11 | >> | tail | [int] | ||
************ 12 | , | range from 1 | [int] | ||
************* 13 | ~ | auto = infinity | auto | ||
*********** 11 | ~ | not | null | ||
*********** 11 | % | modulus | int | I:int | |
************ 12 | ;$ | = F | int | ||
************ 12 | $ | = I | int | ||
********** 10 | $ | = K | int | K:int J:int | |
******* 7 | / | divide | int | ||
******** 8 | ;$ | = F | int | ||
******** 8 | $ | = L | int | ||
****** 6 | ~ | default | null | ||
***** 5 | $ | = M | int | ||
** 2 | `D | to base from data | [chr] | ||
*** 3 | -75 | to base from data arg | null |