referential-transparency
What is the most elegant way to deal with an external library with internal state using a function programming language?
I\'m currently playing around with Scala development, but I need to integrate with libraries such as box2d to handle physics. The problem is that this requires to depend on an external library which m[详细]
2023-01-15 02:11 分类:问答understanding referential transparency
Generally, I have a headache because something is wrong with my reasoning: For 1 set of arguments, referential transparen开发者_如何学编程t function will always return 1 set of output values.[详细]
2023-01-07 21:32 分类:问答What to call OOP's equivalent of "referential transparency"?
My understanding is that the term \"referential transparency\" can really only be applied to functional code.However, a method call on an object in object-oriented code can have a similar property, wh[详细]
2023-01-06 04:51 分类:问答-
Is Haskell truly pure (is any language that deals with input and output outside the system)?
After touching on Monads in respect to functional programming, does the feature actually make a language pure, or is it just another \"get out of jail free card\" for reasoningof computer systems in t[详细]
2023-01-05 04:41 分类:问答 Are there any purely functional Schemes or Lisps?
I\'ve played around with a few functional programming languages and really enjoy the s-expr syntax used by Lisps (Scheme in particular).[详细]
2023-01-01 05:23 分类:问答Finding the shortest path between two points on a grid, using Haskell
This is a problem that I can easily enough solve in a non-functional manner. But solving it in Haskell is giving me big problems. Me being inexperienced when it comes to functional programming is sur[详细]
2022-12-23 04:35 分类:问答Sampling sequences of random numbers in Haskell
I need small lists of gaussian random numbers for a simulation and so I tried the following: import System.Random[详细]
2022-12-16 22:55 分类:问答Is there any benefit to porting the Haskell Edison API and Core to F#?
The Edison API and Core modules are the Haskell implementation of Purely Functional Data Structures Do the F# and native .Net data structur开发者_StackOverflow社区es cover use cases in the Edison API[详细]
2022-12-08 22:16 分类:问答