# HG changeset patch # User IBBoard # Date 1505765338 -3600 # Node ID 8a2451a7b86e5cbe4559bb575e18fca563a57c14 # Parent 6347bacb3be7fc3bcef170b3afb5c977655a037e Add another thought about how the ":" operator works diff -r 6347bacb3be7 -r 8a2451a7b86e 2-Io/day3-DSL.io --- a/2-Io/day3-DSL.io Mon Sep 18 20:53:36 2017 +0100 +++ b/2-Io/day3-DSL.io Mon Sep 18 21:08:58 2017 +0100 @@ -21,6 +21,9 @@ # Based on the following println then it is already "atPutThing(a, b)" by this point # but the ordering still doesn't make sense. # See also http://iolanguage.org/guide/guide.html#Syntax-Operators + # + # It *might* be a side-effect of how addAssignOperator works and then the map hijacks + # the values, but that isn't clear from the book OR the documentation! #arg println map doMessage(arg) ) @@ -41,7 +44,7 @@ the_string := "{ \"foo\": \"12345\", - \"bar\": \"7890\" + \"bar\": \"7890\", }" phoneNumbers := doString(the_string)