Post History
Vyxal 3, 26 bytes ÷50×.5+:'|×'[p$50$-'-×']W“ Vyxal It Online! ÷50×.5+:'|×'[p$50$-'-×']W“...
Answer
#1: Initial revision
# [Vyxal 3](https://github.com/Vyxal/Vyxal/tree/version-3/), 26 bytes ``` ÷50×.5+:'|×'[p$50$-'-×']W“ ``` [Vyxal It Online!](https://vyxal.github.io/latest.html#H4sIAAAAAAAACqtWSssvyk0sUbIy1lHKSE1MSS1SslJSVjY1ODxdvUalQklHKTk_JRUodng7SEzPVNtKvQYoF12gYmqgoquuC2THhj9qmANUmZafXwLWD2LnJKYXK1lFx-ooZeYVlJaA2NFKhvpGSjrRSkBCyVApNlYHJGIMEjFGEjHSNzUDiYFIIA8oCjSkLLWoODM_D2i4sZ6JnqGBUi0A5f6P1LsAAAA) ``` ÷50×.5+:'|×'[p$50$-'-×']W“ ÷50×.5+ # compute (50xratio)+0.5 : # push it twice '|× # "|" that many times '[p # prepend "[" $50$- # retrieve the second copy of the number, and substract it from 50 '-× # "-" that many times '] # "]" literal # stack is now ["[||..."] ["--..."] ["]"] W“ # wrap the entire stack in an array and join it on nothing, yielding the correct string 💎 ``` Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).