Letter: More Solutions
Vector 22:2, page 7
1. How many elements does a given variable have?
Restriction: assume that the keyboard does not have the comma (,) symbol.
2. Is a value within a given range?
Restriction: assume that the keyboard does not have any relational operators.
3. Sort a numeric array of integers in ascending order of the number of digits.
Restriction: assume that the keyboard does not have the format (⍕) or quad (⎕) symbol.
4. Return the element(s) of a numeric array indexed by its first dimension.
Restriction: assume that the keyboard does not have the shape of (⍴) symbol.
NB.(GQR) the definition of this problem is not complete:
a) should return an array with a lesser rank?
b) a scalar has not a “first dimension”, but it is required by the challenge:
or
or
5. Return the sum of element(s) of a numeric array on its first dimension.
Restriction: assume that the keyboard does not have the plus (+) symbol.
NB.(GQR) a scalar has not a “first dimension”, but it is required by the challenge:
6. Convert the string representation of integers to numbers.
Restriction: assume that the keyboard does not have the execute (⍎) symbol.
7. Return a numeric array as zeros, increasing the last dimension by 1.
Restriction: assume that the keyboard does not have the times (×), take (?), minus (-), or comma (,) symbols and it does not end with ⍴0.
8. Return the first ones from a Boolean vector.
Restriction: assume that the keyboard does not have the not (~) or rotate (²) symbols.
9. Return the last ones from a Boolean vector.
Restriction: assume that the keyboard does not have the not (~) or rotate (²) symbols.
10. Return the elements of a numeric array found at given coordinates.
Restrictions: assume that a looping solution is not allowed nor one involving semi-colon and that index origin is 1.