Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 2
    $\begingroup$ I don't fully understand your problem, but I think you suffer from some misunderstanding about what Module and especially Print do: Print will print its argument to the notebook but return Null, and most errors you see are due to that. Module with an empty list of local variables is a noop, so you could just remove it without any change in what the code does... $\endgroup$ Commented Mar 27, 2017 at 10:46
  • $\begingroup$ Removing Print[] and Module[] has no effect. I removed them above for clarity. (Also removed a typo semicolon that was causing a Null output, thanks.) $\endgroup$ Commented Mar 27, 2017 at 14:21
  • $\begingroup$ So what is your goal: do you want to append assoc1 to both datasets as shown as a list? $\endgroup$ Commented Mar 27, 2017 at 14:30
  • $\begingroup$ In my actual code project, the nested Modules are serving a purpose, localizing the scope of other calculations. Removing them entirely makes everything work, but my question is about why they won't work in this case. $\endgroup$ Commented Mar 27, 2017 at 14:30
  • $\begingroup$ @gwr Yes, I'd like to operate locally on the entries of each dataset - appending the association to the existing dataset is the most basic example I could think of. $\endgroup$ Commented Mar 27, 2017 at 14:33