First-class functions/Use numbers analogously: Difference between revisions

Line 679:
 
===Tacit (unorthodox) version===
Although the pseudo-code to generate the numbers can certainly be written (see above [http://rosettacode.org/wiki/First-class_functions/Use_numbers_analogously#Explicit_version Explicit version] ) this is not done for this version because it would destroy part of the analogy (J encourages, from the programming perspective, to process all components at once as opposed to one component at a time). In addition, this version is done in terms of boxed lists of numbers instead of plain list of number, again, to preserve the analogy.
 
<lang> multiplier=. train@:((;:'&*') ;~ an@: *)
Anonymous user