RosettaCodeData/Task/Literals-String/J/literals-string-6.j

13 lines
304 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
load 'strings'
name =: 'John Q. Public'
shyster =: 'Ed McMahon'
amount =: 1e6
payment =: 2 * amount
address =: 'Publisher''s Clearing House'
targets =: ;: 'NAME SHYSTER AMOUNT PAYMENT ADDRESS'
sources =: ":&.> name;shyster;amount;payment;address
message =: template rplc targets,.sources