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;;AAAmB;EAAA,KAAA,mDAAA;;QAAoC,GAAA,KAAS;mBAA7C;;EAAA,CAAA;;;;AACnB,OAAO,CAAC,GAAR,CAAY,eAAZ",
  10. "sourcesContent": [
  11. "storeLocations1 = [\n 'Orlando'\n 'Winter Park'\n 'Sanford'\n]\n\n# Beware, this doesn't compile correctly:\n# storeLocations.forEach(location, index) ->\n# It uses it as a forEach(location, index) call with a () => {} callback\n\n# So be sure to add the space.\nstoreLocations1.forEach (location, index) ->\n console.log \"Location #{index}: #{location}\"\n\n# Or use something more idiomatic:\nfor location, index in storeLocations1\n console.log \"Location #{index}: #{location}\"\n\n# List comprehensions\nconsole.log \"Location #{index}: #{location}\" for location, index in storeLocations1\n\n# In this case, the parentheses are essential\nstoreLocations2 = (\"#{loc}, FL\" for loc in storeLocations1)\n# Without them, the whole \"storeLocations = ...\" part is run for each loc.\nconsole.log storeLocations2\n\ngeoLocate = (loc) ->\n return \"#{loc}, USA\"\n\n# Applying a filter to a list comprehension\nconsole.log (geoLocate(loc) for loc in storeLocations1 when loc isnt 'Sanford')\n\nstoreLocations3 = (loc for loc in storeLocations1 when loc isnt 'Sanford')\nconsole.log(storeLocations3)\n"
  12. ]
  13. }