-2
\$\begingroup\$

The challenge is to write a program which outputs all characters of the Unicode table from n to z range.

For code "0000" is the first in order and you must skip all blank Unicode combinations. For example, let n = 134 and z = 300, you must save or print all unicode characters between 0134 and 0300.

The output of the program does not HAVE to output them, for example using std::cout can be used but if you have an array with all the saved characters then that still qualifies.(You don't have to print them out)

The shortest program in bytes wins.

\$\endgroup\$

closed as unclear what you're asking by Digital Trauma, Οurous, Dennis, Alex A., NinjaBearMonkey Jun 30 '15 at 3:24

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    \$\begingroup\$ What exactly do you mean by n-z range? \$\endgroup\$ – Maltysen Jun 30 '15 at 1:11
  • 2
    \$\begingroup\$ I'm a little confused. The program should output all Unicode characters but don't print them? \$\endgroup\$ – Alex A. Jun 30 '15 at 1:15
  • \$\begingroup\$ @AlexA. maybe he means it can be either function or stdout? \$\endgroup\$ – Maltysen Jun 30 '15 at 1:17
  • \$\begingroup\$ I mean you have to create some sort of list from "n" - "z" For example given n=134, that would be the 134 character in Unicode or "0134"and z=300 so you would print all unicode characters between "0134" through "0300". You would then have to skip all blank characters and save them in some way. \$\endgroup\$ – Roberto Duran Jun 30 '15 at 1:21
  • 1
    \$\begingroup\$ Adding some examples of input and its associated output would be helpful to clarify your intent. \$\endgroup\$ – Alex A. Jun 30 '15 at 2:17
8
\$\begingroup\$

Pyth - 16 bytes

Maps Char-of over the range, and detects unprintables by if the string "\x" is inside its repr because that is how python represents unprintables like \x00.

f!}"\\x"`TCMrQvw

Try it here online.

\$\endgroup\$
  • \$\begingroup\$ This is correct and the winner! \$\endgroup\$ – Roberto Duran Jul 3 '15 at 8:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.