Skip to content

2014-2: How Tweet It Is

Twitter messages have a 140 character limit; what if the limit was even shorter? One way to shorten the message yet retain most readability is to remove interior vowels from its words. Write a dfn which takes a character vector and removes the interior vowels from each word.

Examples:

      (your_function) 'if you can read this, it worked!'
if yu cn rd ths, it wrkd!
      (your_function) 'APL is REALLY cool'
APL is RLLY cl
      (your_function) '' ⍝ an empty vector arg should return an empty vector

      (your_function) 'a' ⍝ should work with a single character message
a
your_function ←

Solutions

Video Thumbnail YouTube

Chat transcript Code on GitHub