How to use recursive of list, functionally

二次信任 提交于 2019-12-11 11:00:11

问题


Say i have a list containing maps:

let mone = Map.ofList["1", "cat"; "2", "tiger"; "3", "lynx"]
let mtwo= Map.ofList["1", "dog"; "2", "wolf"; "3", "puppy"]
let mthree= Map.ofList["1", "bird"; "2", "chicken"; "3", "pigeon"]

let mlist = [mone; mtwo; mthree]

how can i use recursive to display one map at a time, rather then displaying all the maps? for example, displaying first element then ending iteration, to move onto something else, then displaying the second element etc.

来源:https://stackoverflow.com/questions/43903584/how-to-use-recursive-of-list-functionally

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!