imperative
A Functional-Imperative Hybrid
Pure functional programming languages do not allow mutable data, but some computations are more naturally/intuitively expressed in an imperative way -- or an imperative version of an algorithm may be[详细]
2023-03-28 13:41 分类:问答Scala Performance: imperative vs functional style
I\'m new to Scala and was just reading Scala By Example. In chapter 2, the author has 2 different 开发者_开发知识库versions of Quicksort.[详细]
2023-01-08 13:49 分类:问答How do I code a tree of objects in Haskell with pointers to parent and children?
I\'ve got the following problem: I have a tree of objects of different classes where an action in the child class invalidates the parent. In imperative languages, it is trivial to do. For example, in[详细]
2023-01-02 08:46 分类:问答Programmatically attaching a VHD to a remote Hyper-V VM
Using Hyper-V Manager, I can connect to a remote VM host, go to the settings of a VM, and add an existing .VHD file as a new hard disk. If the VM host is running Server 2008 R2, and the disk is being[详细]
2022-12-19 02:29 分类:问答