Jump to content

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] ) itthis is not done for this version because it would destroy part of the analogy (J encourages, from the programming perspective, to process all the components at once as opposed to one component at a time).
 
<lang> multiplier=. train@:((;:'&*') ;~ an@: *)
Line 698:
0.5 0.5 0.5</lang>
 
Please refer to [http://rosettacode.org/wiki/First-class_functions#Tacit_.28unorthodox.29_version First-class functions tacit (unorthodox) version)] for the definitions of the functions train, an and of.
 
=={{header|jq}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.