Talk:Average loop length: Difference between revisions

 
(One intermediate revision by one other user not shown)
Line 10:
--[[user Horst.h|Horst.h]] [[User:Horst.h|Horst.h]] ([[User talk:Horst.h|talk]]) 08:26, 6 February 2020 (UTC)
: Sure, in the sense that they share features -- both tasks deal with permutations (and permutations of length 100, at that). But they are also different tasks, and the solutions are different. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 17:40, 6 February 2020 (UTC)
 
== Syntax errors: regarding "as" at lines 39 and 43 ==
 
Hi;
 
wren_cli average_loop_length.wren
[./average_loop_length line 39] Error at 'as': Expect variable name.
[./average_loop_length line 43] Error at 'as': Expected expression.
 
Thanks,
Retired_Build_Engineer
 
:Yeah, the problem there is that, when I wrote this example, Wren was only at version 0.2.0 and I hadn't yet added the C-like Fmt.print statement. 'as' became a keyword in version 0.4.0 and so can no longer be used as an ordinary variable name, hence the error message. Anyway I've changed it now though note that, as the output is random, you'll get a different table each time you run it. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 07:01, 2 September 2023 (UTC)
9,476

edits