Have been trying to figure out the correct way to code and use a persistent term, and am stuck.
- How do I assign a variable to a persistent term that I can access outside the module it was created in?
- How would I write the following code?
def build_store do
#Setup Persistent Term variable here
#Stream CSV File. I’m ok with this part using File.stream!() and parsing using split
|> Stream.map(fn x -> #Add to persistent term here# end) #This bit has me stumped
#Once term is created
#How do I read it here from another module?
Any assistance will be greatly appreciated