is there another (simple) way to write this?
HenHanna <[email protected]> writes:
is there another (simple) way to write this?
Yes, but please consider doing these easy exercises yourself instead of fobbing them onto other people.
Paul Rubin <[email protected]d> writes:
HenHanna <[email protected]> writes:
is there another (simple) way to write this?
Yes, but please consider doing these easy exercises yourself instead of
fobbing them onto other people.
Hen's probably just an experimental GPT. You, with your limited
resources, can never train it.
I'd say you can't beat the verbosity, or lack thereof of just plain zsh/bash:
$ echo {1,2,3,4}0{1,2,3}
101 102 103 201 202 203 301 302 303 401 402 403
Phil
I /think/ you can replace it with {1...4} and {1...3}?
Phil Carmody <[email protected]> wrote at 12:01 this Thursday (GMT):
I'd say you can't beat the verbosity, or lack thereof of just plain zsh/bash:
$ echo {1,2,3,4}0{1,2,3}
101 102 103 201 202 203 301 302 303 401 402 403
I /think/ you can replace it with {1...4} and {1...3}? I know there is
some syntax for "range of numbers" but I can't remember it exactly.
Phil Carmody <[email protected]> wrote at 12:01 this Thursday (GMT):
Paul Rubin <[email protected]d> writes:
HenHanna <[email protected]> writes:
is there another (simple) way to write this?
Yes, but please consider doing these easy exercises yourself
instead of
fobbing them onto other people.
Hen's probably just an experimental GPT. You, with your limited
resources, can never train it.
I'd say you can't beat the verbosity, or lack thereof of just plain
zsh/bash:
$ echo {1,2,3,4}0{1,2,3}
101 102 103 201 202 203 301 302 303 401 402 403
I /think/ you can replace it with {1...4} and {1...3}? I know there is
some syntax for "range of numbers" but I can't remember it exactly.
candycanearter07 <[email protected]>
writes:
Phil Carmody <[email protected]> wrote at 12:01 this Thursday (GMT):
Paul Rubin <[email protected]d> writes:
HenHanna <[email protected]> writes:
is there another (simple) way to write this?
Yes, but please consider doing these easy exercises yourself
instead of
fobbing them onto other people.
Hen's probably just an experimental GPT. You, with your limited
resources, can never train it.
I'd say you can't beat the verbosity, or lack thereof of just plain
zsh/bash:
$ echo {1,2,3,4}0{1,2,3}
101 102 103 201 202 203 301 302 303 401 402 403
I /think/ you can replace it with {1...4} and {1...3}? I know there is
some syntax for "range of numbers" but I can't remember it exactly.
You're right, but it's even shorter -
$ echo {1..4}0{1..3}
101 102 103 201 202 203 301 302 303 401 402 403
Good golfing!
Phil
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 16:16:53 |
| Calls: | 12,103 |
| Calls today: | 3 |
| Files: | 15,004 |
| Messages: | 6,518,058 |