Jump to content

Multiple distinct objects: Difference between revisions

m
no edit summary
(→‎{{header|AppleScript}}: Updated primitives)
mNo edit summary
Line 634:
<lang JavaScript>[{"index":0}, {"index":1}, {"index":2}, {"index":3},
{"index":4}, {"index":5}, {"index":6}]</lang>
 
=={{header|Julia}}==
 
The mistake might be in coding:
<lang Julia>>
foo() = rand() # repeated calls change the result with each call
repeat([foo()], outer=5) # but this only calls foo() once, clones that first value
</lang>
<br />
<lang Julia>
[foo() for i in 1:5] # Code this to call the function within each iteration
</lang>
 
=={{header|jq}}==
4,105

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.