Borrowing some ideas from other people in this thread: f=:[:|:((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0
Example uses: f 'a' f '-' f 'C.' -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm