Skip to content

8. Just Drop It

In this problem, you’re asked to enter your own APL function, without giving it any arguments. Your function will be checked by the APL Challenge system using several tests to see whether it is correct.

The function (Drop) is used to drop items (the symbol hints at the direction that things fall when they are dropped). It takes a number on its left and a list on its right. The number specifies how many items to drop from the start of the list. For example, 1 ↓ 3 1 4 1 5 gives 1 4 1 5 and 3 ↓ 3 1 4 1 5 gives 1 5.


Using and from problem 4, write a function that removes the first and last letters of a given word. For example:

      {answer} 'ACRONYM'
CRONY

      {answer} 'DINNERS'
INNER

      {answer} 'ACUTE'
CUT