Skip to main content
Commonmark migration
Source Link

##QBIC, 25 bytes

QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!b$]?_lA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_lA      Print the length of A$

##QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!b$]?_lA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_lA      Print the length of A$

QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!b$]?_lA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_lA      Print the length of A$
edited body
Source Link
steenbergh
  • 8.1k
  • 1
  • 25
  • 41

##QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!a$]b$]?_lA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_lA      Print the length of A$

##QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!a$]?_lA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_lA      Print the length of A$

##QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!b$]?_lA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_lA      Print the length of A$
edited body
Source Link
steenbergh
  • 8.1k
  • 1
  • 25
  • 41

##QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!a$]?_LA_lA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_LA_lA      Print the length of A$

##QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!a$]?_LA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_LA      Print the length of A$

##QBIC, 25 bytes

:[0,a,sgn(a)|A=A+!a$]?_lA

Explanation:

:[0,a     Read 'a' from the cmd line, start a FOR loop from 0 to 'a'
,sgn(a)|  with incrementer set to -1 for negative ranges and 1 for positive ones
A=A+!b$   Add a string cast of each iteration (var 'b') to A$
]         NEXT
?_lA      Print the length of A$
Source Link
steenbergh
  • 8.1k
  • 1
  • 25
  • 41
Loading