<div dir="ltr"><div>I'm looking at this code:<br><br>spawn_CerebralUnits(IdsNPIds, CerebralUnitType, [Id | Ids])-><br> PId = CerebralUnitType:gen(self(), node()),<br> ets:insert(IdsNPIds, {Id, PId}),<br> ets:insert(IdsNPIds, {PId, Id}),<br>
spawn_CerebralUnits(IdsNPIds, CerebralUnitType, Ids);<br>spawn_CerebralUnits(_IdsNPIds, _CerebralUnitType, [])-><br> true.<br><br></div>On the line where PId is bound, you have this<br>"CerebralUnitType:gen(self(), node()),". CerebralUnitType is an atom "cortex". So <br>
what does :gen do in this case?<br></div>