Mercurial > repos > other > SevenLanguagesInSevenWeeks
changeset 45:8a2451a7b86e
Add another thought about how the ":" operator works
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 18 Sep 2017 21:08:58 +0100 |
parents | 6347bacb3be7 |
children | eac30c1b92da |
files | 2-Io/day3-DSL.io |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)