[ prog / sol / mona ]

prog


The Forced Indentation Of Code

37 2022-02-20 14:31

😵😵 double spiral >>13 🐚🐚

>> console.log (((self, xjoin, pred, patch, n, s) => (z => self (xjoin) (2 * n - 1, "\n", k => self (xjoin) (2 * n - 1, " ", j => (patch (n, k, j) ?? pred (n, k, j)) ? s : z))) (self (xjoin) (s.length, "", k => " "))) (f => (...args) => f (f) (...args), me => (n, s, f) => n <= 0 ? "" : n == 1 ? f (0) : me (me) (n - 1, s, f) + s + f (n - 1), (abs => (n, k, j) => ((k, j) => ((kev, jev) => kev ? jev || j < k : jev && j > k) (k % 2 == 0, j % 2 == 0)) (abs (n - 1 - k), abs (n - 1 - j))) (Math.abs), (abs => (n, k, j) => ((k == j + 1) && (k <= n - 1)) || ((k + 1 == j) && (k >= n - 1)) ? abs (n - 1 - k) % 2 == 0 : null) (Math.abs), 9, "rep"))
rep rep rep rep rep rep rep rep rep rep rep rep rep rep rep rep rep
                                                                rep
rep rep rep rep rep rep rep rep rep rep rep rep rep rep rep     rep
rep                                                     rep     rep
rep     rep rep rep rep rep rep rep rep rep rep rep     rep     rep
rep     rep                                     rep     rep     rep
rep     rep     rep rep rep rep rep rep rep     rep     rep     rep
rep     rep     rep                     rep     rep     rep     rep
rep     rep     rep     rep rep rep rep rep     rep     rep     rep
rep     rep     rep     rep                     rep     rep     rep
rep     rep     rep     rep rep rep rep rep rep rep     rep     rep
rep     rep     rep                                     rep     rep
rep     rep     rep rep rep rep rep rep rep rep rep rep rep     rep
rep     rep                                                     rep
rep     rep rep rep rep rep rep rep rep rep rep rep rep rep rep rep
rep                                                                
rep rep rep rep rep rep rep rep rep rep rep rep rep rep rep rep rep
<- undefined
>> 
267


VIP:

do not edit these