Problem: Derangements
Code: Derangements/tails_1645189937
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 | [[[int]]] | ||
* 1 | | | filter | [[int]] | ||
** 2 | ``p | permutations | [[int]] | ||
*** 3 | , | range from 1 | [int] | ||
**** 4 | 6 | integer | int | ||
** 2 | `* | product | int | A:[int] | |
*** 3 | ! | zip with | [int] | ||
**** 4 | $ | = A | [int] | ||
**** 4 | , | range from 1 | [int] | B:int | |
***** 5 | 6 | integer | int | ||
**** 4 | ! | zipop: abs diff | null | ||
* 1 | : | append | [[int]] | D:[int] C:[int] | |
** 2 | $ | = D | [int] | ||
** 2 | ~ | auto = [] | auto |