Skip to main content
Add a better point
Source Link
user62802
user62802

Unfortunately, after what seems an eternity of searching documentation, I can't seem find any solution that will work with the 12-character constraint and generate for any given character given. However, there are a few neat tricks one can do to save some bytes for specific cases:

  • 1eL-1+'' will give a string, filled with 9s, of L length.
  • ''.padEnd(L) will give a string, filled with spaces, of L length. It's only useful when L > 10, otherwise it's too long. This one can be immediately chained with a function.
  • 1N/3+''9+'' will give a string, starting with 0. then followed by a bunch of 3Ns. ObviouslyThis does not work when N < 1 or N > 8, and the result obviously does not contain the same characters the whole way, but pretty close and pretty short.
  • Array(L)+'' will give a string, filled with commas, of length L - 1.

Unfortunately, after what seems an eternity of searching documentation, I can't seem find any solution that will work with the 12-character constraint and generate for any given character given. However, there are a few neat tricks one can do to save some bytes for specific cases:

  • 1eL-1+'' will give a string, filled with 9s, of L length.
  • ''.padEnd(L) will give a string, filled with spaces, of L length. It's only useful when L > 10, otherwise it's too long. This one can be immediately chained with a function.
  • 1/3+'' will give a string, starting with 0. then followed by a bunch of 3s. Obviously not the same characters the whole way, but pretty close and pretty short.
  • Array(L)+'' will give a string, filled with commas, of length L - 1.

Unfortunately, after what seems an eternity of searching documentation, I can't seem find any solution that will work with the 12-character constraint and generate for any given character given. However, there are a few neat tricks one can do to save some bytes for specific cases:

  • 1eL-1+'' will give a string, filled with 9s, of L length.
  • ''.padEnd(L) will give a string, filled with spaces, of L length. It's only useful when L > 10, otherwise it's too long. This one can be immediately chained with a function.
  • N/9+'' will give a string, starting with 0. then followed by a bunch of Ns. This does not work when N < 1 or N > 8, and the result obviously does not contain the same characters the whole way, but pretty close and pretty short.
  • Array(L)+'' will give a string, filled with commas, of length L - 1.
Fix explanation
Source Link
user62802
user62802

Unfortunately, after what seems an eternity of searching documentation, I can't seem find any solution that will work with the 12-character constraint and generate for any given character given. However, there are a few neat tricks one can do to save some bytes for specific cases:

  • 1eL-1+'' will give a string, filled with 9s, of L length.
  • ''.padEnd(L) will give a string, filled with spaces, of L length. It's only useful when L > 10, otherwise it's too long. This one can be immediately chained with a function.
  • 1/3+'' will give a string, starting with 0. then followed by a bunch of 3s. Obviously not the same characters the whole way, but pretty close and pretty short.
  • Array(L)+'' will give a string, filled with commas, of length L - 1.

Unfortunately, after what seems an eternity of searching documentation, I can't seem find any solution that will work with the 12-character constraint and generate for any given character given. However, there are a few neat tricks one can do to save some bytes for specific cases:

  • 1eL-1+'' will give a string, filled with 9s, of L length.
  • ''.padEnd(L) will give a string, filled with spaces, of L length. It's only useful when L > 10, otherwise it's too long. This one can be immediately chained with a function.
  • 1/3+'' will give a string, starting with 0. then followed by a bunch of 3s. Obviously not the same characters the whole way, but pretty close and pretty short.
  • Array(L)+'' will give a string, filled with commas, of length L.

Unfortunately, after what seems an eternity of searching documentation, I can't seem find any solution that will work with the 12-character constraint and generate for any given character given. However, there are a few neat tricks one can do to save some bytes for specific cases:

  • 1eL-1+'' will give a string, filled with 9s, of L length.
  • ''.padEnd(L) will give a string, filled with spaces, of L length. It's only useful when L > 10, otherwise it's too long. This one can be immediately chained with a function.
  • 1/3+'' will give a string, starting with 0. then followed by a bunch of 3s. Obviously not the same characters the whole way, but pretty close and pretty short.
  • Array(L)+'' will give a string, filled with commas, of length L - 1.
Source Link
user62802
user62802

Unfortunately, after what seems an eternity of searching documentation, I can't seem find any solution that will work with the 12-character constraint and generate for any given character given. However, there are a few neat tricks one can do to save some bytes for specific cases:

  • 1eL-1+'' will give a string, filled with 9s, of L length.
  • ''.padEnd(L) will give a string, filled with spaces, of L length. It's only useful when L > 10, otherwise it's too long. This one can be immediately chained with a function.
  • 1/3+'' will give a string, starting with 0. then followed by a bunch of 3s. Obviously not the same characters the whole way, but pretty close and pretty short.
  • Array(L)+'' will give a string, filled with commas, of length L.