gifti @
gifti @programming.dev
Posts 0
Comments 2
[Easy] Bracket Simplification gifti @programming.dev 2 0
I know I'm too late – but nonetheless …
Factor:
[ [ dup "()" "[]" "{}" [ "" splitting:replace ] tri@ tuck = not ] loop print flush ] each-line
Edit: Thanks to the Alexes from the Factor Discord for xer suggestion!
Reply
[Easy] String Compression gifti @programming.dev 2 0
Factor:
(command-line) last [ ] group-by [ length 48 + swap ] assoc-map "" concat-as print
Reply
Next