If you can read this…

From codewars.com by Edxael  (that’s me)

Description:

The idea for this Kata came from 9gag today.here

You’ll have to translate a string to Pilot’s alphabet (NATO phonetic alphabet) wiki.

Like this:

Input: If you can read

Output: Indian Foxtrot Yankee Oscar Uniform Charlie Alfa November Romeo Echo Alfa Delta

Some notes

  • Keep the punctuation, and remove the spaces.
  • Use Xray without dash or space.

Reference

alt text

: – – My Code – – :

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: phaul

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: matmaxanh

x



Copyright 2017. All rights reserved.

Posted January 17, 2017 by Edmundo in category "Ruby Examples