# set up cores 
using Distributed
addprocs(1)

@everywhere begin 

    # READ IN CSV - i'll aproximate it with a vector
    # what I want to have here is vec_to_pass be read in as data from the local
    # machine that then is available to all workers 
    vec_to_pass = [1,2,3,4,5]
    
    path = pwd()
    path = path*"/src/reprexs/def_functions.jl"
    include(path)

    # variable I want to be the same across the different cores
    a = 4
    b = 3
end 

@distributed (+) for i in 1:10

    add_2!(a, b, vec_to_pass[i], i)
end 








