Post History
Vyxal Hj, 10 bytes ƛ₍₃₅kF½*∑∴ Try it Online! Vyxal has gotten a whole lot better since first posting this. Explained Very simply, this is: for each item in the range [1, 100], create the lis...
Answer
#3: Post edited
# [Vyxal](https://github.com/Lyxal/Vyxal), `jM`, 18 bytes```Ĥƛ3œıƆĿ*n5œıŧĤ*+n⟇- ```
## ExplainedĤƛ3œıƆĿ*n5œıŧĤ*+n⟇Ĥ # Push the number 100ƛ # Start a lambda map doing the following over the range [1, 100]: (it would usually map over [0,99] but the M flag makes the lambda increase the start and end of that range)3œ # Find the divisibility of the argument by 3 ANDıƆĿ # Push the compressed string "Fizz" AND* # Multiply the two together THENn5œ # Find the divisibility of the argument by 5 ANDıŧĤ # Push the compressed string "Buzz" AND* # Multiply the two together THEN+ # Add the two multiplied strings together THENn⟇ # Short-circuit OR the string and the argument.# The `j` flag automatically joins with newlines
- # [Vyxal](https://github.com/Lyxal/Vyxal) `Hj`, 10 bytes
- ```
- ƛ₍₃₅kF½*∑∴
- ```
- [Try it Online!](https://lyxal.pythonanywhere.com?flags=Hj&code=%C6%9B%E2%82%8D%E2%82%83%E2%82%85kF%C2%BD*%E2%88%91%E2%88%B4&inputs=&header=&footer=)
- Vyxal has gotten a whole lot better since first posting this.
- ## Explained
- Very simply, this is: for each item in the range `[1, 100]`, create the list `[item % 3 == 0, item % 5 == 0]`, multiply that by `["Fizz", "Buzz"]`, sum that and get the maximum of the number and the summed list.
#2: Post edited
- # [Vyxal](https://github.com/Lyxal/Vyxal), `jM`, 18 bytes
- ```
- Ĥƛ3œıƆĿ*n5œıŧĤ*+n⟇
- ```
- ## Explained
- Ĥƛ3œıƆĿ*n5œıŧĤ*+n⟇
- Ĥ # Push the number 100
- ƛ # Start a lambda map doing the following over the range [1, 100]: (it would usually map over [0,99] but the M flag makes the lambda increase the start and end of that range)
- 3œ # Find the divisibility of the argument by 3 AND
- ıƆĿ # Push the compressed string "Fizz" AND
- * # Multiply the two together THEN
- n5œ # Find the divisibility of the argument by 5 AND
- ıŧĤ # Push the compressed string "Buzz" AND
- * # Multiply the two together THEN
- + # Add the two multiplied strings together THEN
- n⟇ # Short-circuit OR the string and the argument.
- # The `j` flag automatically joins with newlines
String compression here is dictionary string compression.A clarification: When you try to map a function to an integer, the range [0, integer) is generated and is consequently used as the iterable. The M flag makes this implicit range [1, integer]
- # [Vyxal](https://github.com/Lyxal/Vyxal), `jM`, 18 bytes
- ```
- Ĥƛ3œıƆĿ*n5œıŧĤ*+n⟇
- ```
- ## Explained
- Ĥƛ3œıƆĿ*n5œıŧĤ*+n⟇
- Ĥ # Push the number 100
- ƛ # Start a lambda map doing the following over the range [1, 100]: (it would usually map over [0,99] but the M flag makes the lambda increase the start and end of that range)
- 3œ # Find the divisibility of the argument by 3 AND
- ıƆĿ # Push the compressed string "Fizz" AND
- * # Multiply the two together THEN
- n5œ # Find the divisibility of the argument by 5 AND
- ıŧĤ # Push the compressed string "Buzz" AND
- * # Multiply the two together THEN
- + # Add the two multiplied strings together THEN
- n⟇ # Short-circuit OR the string and the argument.
- # The `j` flag automatically joins with newlines
#1: Initial revision
# [Vyxal](https://github.com/Lyxal/Vyxal), `jM`, 18 bytes ``` Ĥƛ3œıƆĿ*n5œıŧĤ*+n⟇ ``` ## Explained Ĥƛ3œıƆĿ*n5œıŧĤ*+n⟇ Ĥ # Push the number 100 ƛ # Start a lambda map doing the following over the range [1, 100]: (it would usually map over [0,99] but the M flag makes the lambda increase the start and end of that range) 3œ # Find the divisibility of the argument by 3 AND ıƆĿ # Push the compressed string "Fizz" AND * # Multiply the two together THEN n5œ # Find the divisibility of the argument by 5 AND ıŧĤ # Push the compressed string "Buzz" AND * # Multiply the two together THEN + # Add the two multiplied strings together THEN n⟇ # Short-circuit OR the string and the argument. # The `j` flag automatically joins with newlines String compression here is dictionary string compression. A clarification: When you try to map a function to an integer, the range [0, integer) is generated and is consequently used as the iterable. The M flag makes this implicit range [1, integer]