Post History
Vyxal, 24 bytes \.€hEb:L8-0wẋf$J0ḟkA5Ẏ$i Try it Online! This is absolutely abysmal but whatever. A lot of bytes are taken up by trying to pad the list with zeroes (ẋ was buggy or something so ...
Answer
#3: Post edited
# [Vyxal](https://github.com/Vyxal/Vyxal), 25 bytes- ```
\.€hEbṘDL8-0wẋfJṘ0ḟkA5Ẏ$i- ```
[Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCLin6hgMC4wLjAuMGB8YDEyNy4yNTUuMjU1LjI1NWB8YDEyOC4wLjAuMGB8YDE5MS4yNTUuMjU1LjI1NWB8YDE5Mi4wLjAuMGB8YDIyMy4yNTUuMjU1LjI1NWB8YDIyNC4wLjAuMGB8YDIzOS4yNTUuMjU1LjI1NWB8YDI0MC4wLjAuMGB8YDI1NS4yNTUuMjU1LjI1NWDin6kgxpsiLCJcXC7igqxoRWLhuZhETDgtMHfhuotmSuG5mDDhuJ9rQTXhuo4kaSIsIjsiLCIiXQ==)This is absolutely abysmal but whatever. A lot of bytes are taken up by trying to pad the list with zeroes (`ẋ` was buggy or something so molding to `0 8ẋ` didn't work).
- # [Vyxal](https://github.com/Vyxal/Vyxal), 24 bytes
- ```
- \.€hEb:L8-0wẋf$J0ḟkA5Ẏ$i
- ```
- [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCLin6hgMC4wLjAuMGB8YDEyNy4yNTUuMjU1LjI1NWB8YDEyOC4wLjAuMGB8YDE5MS4yNTUuMjU1LjI1NWB8YDE5Mi4wLjAuMGB8YDIyMy4yNTUuMjU1LjI1NWB8YDIyNC4wLjAuMGB8YDIzOS4yNTUuMjU1LjI1NWB8YDI0MC4wLjAuMGB8YDI1NS4yNTUuMjU1LjI1NWDin6kgxpsiLCJcXC7igqxoRWI6TDgtMHfhuotmJEow4bifa0E14bqOJGkiLCI7IiwiIl0=)
- This is absolutely abysmal but whatever. A lot of bytes are taken up by trying to pad the list with zeroes (`ẋ` was buggy or something so molding to `0 8ẋ` didn't work).
- Explanation:
- - `\.€` splits on `.` and `h` gets the first of these part/octet
- - `E` turns that into an integer and `b` turns it into binary (list of 0/1)
- - `:` duplicates that list on the stack
- - The first copy is used to create a list of extra 0s to pad
- - `L` gets the length of the list and `8-` subtracts 8 from it
- - `0w` is the singleton list `[0]`
- - `ẋ` then repeats the singleton list `8 - len(binary)` times
- - `f` flattens that list to get `[0, 0, 0, 0, 0, 0, 0, 0]`
- - `$` swaps this pad and the original list and `J` prepends the pad to the original
- - `0ḟ` finds the index of the first `0`
- - `kA` is the uppercase alphabet and `5Ẏ` gives the first 5 letters (`ABCDE`), our classes
- - `$` swaps before `i` indexes into the string of classes using the index of `0`
#2: Post edited
# [Vyxal](https://github.com/Vyxal/Vyxal), 26 bytes- ```
`.`€hEbṘDL8-0wẋfJṘ0ḟkA5Ẏ$i- ```
[Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCLin6hgMC4wLjAuMGB8YDEyNy4yNTUuMjU1LjI1NWB8YDEyOC4wLjAuMGB8YDE5MS4yNTUuMjU1LjI1NWB8YDE5Mi4wLjAuMGB8YDIyMy4yNTUuMjU1LjI1NWB8YDIyNC4wLjAuMGB8YDIzOS4yNTUuMjU1LjI1NWB8YDI0MC4wLjAuMGB8YDI1NS4yNTUuMjU1LjI1NWDin6kgxpsiLCJgLmDigqxoRWLhuZhETDgtMHfhuotmSuG5mDDhuJ9rQTXhuo4kaSIsIjsiLCIiXQ==)- This is absolutely abysmal but whatever. A lot of bytes are taken up by trying to pad the list with zeroes (`ẋ` was buggy or something so molding to `0 8ẋ` didn't work).
- # [Vyxal](https://github.com/Vyxal/Vyxal), 25 bytes
- ```
- \.€hEbṘDL8-0wẋfJṘ0ḟkA5Ẏ$i
- ```
- [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCLin6hgMC4wLjAuMGB8YDEyNy4yNTUuMjU1LjI1NWB8YDEyOC4wLjAuMGB8YDE5MS4yNTUuMjU1LjI1NWB8YDE5Mi4wLjAuMGB8YDIyMy4yNTUuMjU1LjI1NWB8YDIyNC4wLjAuMGB8YDIzOS4yNTUuMjU1LjI1NWB8YDI0MC4wLjAuMGB8YDI1NS4yNTUuMjU1LjI1NWDin6kgxpsiLCJcXC7igqxoRWLhuZhETDgtMHfhuotmSuG5mDDhuJ9rQTXhuo4kaSIsIjsiLCIiXQ==)
- This is absolutely abysmal but whatever. A lot of bytes are taken up by trying to pad the list with zeroes (`ẋ` was buggy or something so molding to `0 8ẋ` didn't work).
#1: Initial revision
# [Vyxal](https://github.com/Vyxal/Vyxal), 26 bytes ``` `.`€hEbṘDL8-0wẋfJṘ0ḟkA5Ẏ$i ``` [Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCLin6hgMC4wLjAuMGB8YDEyNy4yNTUuMjU1LjI1NWB8YDEyOC4wLjAuMGB8YDE5MS4yNTUuMjU1LjI1NWB8YDE5Mi4wLjAuMGB8YDIyMy4yNTUuMjU1LjI1NWB8YDIyNC4wLjAuMGB8YDIzOS4yNTUuMjU1LjI1NWB8YDI0MC4wLjAuMGB8YDI1NS4yNTUuMjU1LjI1NWDin6kgxpsiLCJgLmDigqxoRWLhuZhETDgtMHfhuotmSuG5mDDhuJ9rQTXhuo4kaSIsIjsiLCIiXQ==) This is absolutely abysmal but whatever. A lot of bytes are taken up by trying to pad the list with zeroes (`ẋ` was buggy or something so molding to `0 8ẋ` didn't work).