Problem: Twelve

Code: Twelve/tails_1642477453

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)


Note: This code seems to be written in Nibbles version < 0.22

. (map):[[chr]] 
    `< (sort):[int] 
        , (range from 1):[int] 
            + (add):int 
                ; (let):int -->let( C:int ) 
                    + (sum):int 
                        . (map):[int] 
                            @ (= fstLine):[chr] 
                            , (length):int <--arg( A:chr ) 
                                | (filter):[chr] 
                                    `, (range from 0):[chr] 
                                        $ (= A):chr 
                                    \ (char class):[chr] <--arg( B:chr ) 
                                        $ (= B):chr 
                                        n (isAlphaNum):null 
                * (multiply):int 
                    / (divide):int 
                        $ (= C):int 
                        12 (integer):int 
                    4 (integer):int 
    > (drop):[chr] <--arg( D:int ) 
        $ (= D):int 
        "" (string):[chr] 

Back to the index