functional-programming - How to keep track of a list of nodes in the functional programming paradigm
问题描述
I just started to program in the functional paradigm and got stuck quite early on. I am trying to create a program that manages a peer to peer network. For this I have to keep track of a list of nodes in the network.
I have read a lot of articles about managing state in functional programming telling that state is managed though a tunnel of function calls. But this does not touch on the subject of the state when no functions are called, where is the state saved then?
I'd say that you use a database or something alike in this scenario but I was wondering if it was possible to do it runtime with functional programming.
解决方案
推荐阅读
- javascript - 使用一个 onChange 处理程序处理动态文本输入,并且在 React JS 中没有名称属性
- ansible - 调试http post请求ansible
- python-3.x - 如何从python文件访问数组值
- vbscript - 我无法使用 VBS 提取特定字符串
- python - 在 Python 中计算回报和波动率的更有效方法
- c++ - 有没有办法将数字作为字符串,并且不使用浮点数或双精度数,将其四舍五入到确切的位数?
- ignite - 引发 QueryCursor 中的序列化问题
- c# - 有没有办法在具有某些规格的winforms c#中动态调整壁虎浏览器的大小?
- javascript - 每次单击复选框时检测一次单击
- python - 如何从 apscheduler 访问返回值?