56 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
169
views
Is there a widely-accepted Common Lisp naming convention for functions modifying one or more of their arguments?
In CL, we have incf and setf imperative functions. Scheme uses an exclamation point (e.g. set!, vector-set! etc.) But what, if any, convention do CL programmers use?
0
votes
1
answer
288
views
Display record based on record type and and industry and show a green button icon if account is active using lwc how to implement
Write a LWC component to display Account records in lightning-datatable and show checkbox
field (IsActive) as an image (true: green check, false: red cross). Please don’t use @wire
adapters.
Please ...
2
votes
1
answer
222
views
Is a function that makes local use of mutability pure?
I'm a beginner to Scala, FP, and programming in general. I'm trying to understand when something can be called proper FP.
If we say that functional programming is about chaining functions together so ...
3
votes
1
answer
1k
views
Quarkus Mutiny multithreading
I have some imperative code which processes on 20 Threads in parallel.
IntStream.range(0, 20)
.forEach(t -> {
Runnable runnable = () -> {
int records = RANGE;
...
user avatar
user21684014
1
vote
1
answer
95
views
Is there a Declarative approach to converting each member of a TypeScipt array to a full instance of an Object?
I have a class I can't change, simplified version shown. I got an array of variations on the class. I need to add the rest of the class to each member of the array before I can use them.
class ...
4
votes
1
answer
2k
views
Quarkus reactive vs quarkus imperative does it matter?
Hello I was reading the following article Quarkus reactive architecture
At the start of the article it says
Quarkus is reactive. It’s even more than this: Quarkus unifies reactive and imperative ...
user avatar
user19906023
1
vote
1
answer
612
views
Incrementing a counter with functional programming vs imperative programming
I likely am asking a very stupid question here, please forgive me.
I am a Java and C# backend-engineer with relatively good knowledge of OOP design patterns. I have recently discovered the debate ...
0
votes
1
answer
250
views
Function doesn't print correctly
So I have to create a "lights out" game. I have to create two functions. One function "flip"
val flip : bool array array -> int -> int -> bool array array = <fun>
...
0
votes
1
answer
154
views
Is it possible to mix declarative and imperative paradigms for Android UI development?
Is it possible to mix declarative and imperative paradigms for Android UI development ?
1- In « traditional » Android development, Java + XML are used to create interface elements (in a Rather static ...
1
vote
0
answers
714
views
How to change the structure of a sentence (imperative -> interrogative) in python (NLP)
I would like to build a model that can take a sentence in the imperative form and output a new sentence in an interrogative form (however, the meaning would be the same in both sentences - both ...
0
votes
2
answers
135
views
Simple flow control and variable binding in Clojure
I'm learning Clojure and working on a simple file parsing script.
I have a file in the form of:
pattern1
pattern2
pattern3
pattern1
pattern2
...
where each line has a few values (numbers) that I ...
2
votes
0
answers
240
views
Imperative Triggers in Azure Functions?
I've read many posts re how to use Imperative input and output bindings - I get that, very cool.
However, what I have struggled to find is a way to create Imperative Triggers. I'm not sure if this is ...
2
votes
1
answer
294
views
Make Haskell Imperative
Note: this is an exercise, and I'm trying to understand how things work.
I am trying to make it possible to do something like this in Haskell:
f :: Integer -> Integer
f n = def $ do
i <-...
0
votes
2
answers
256
views
How do I scale values all the values in a list where the largest value is 1 and the smallest value is 0
I am trying to scale all the values in a list where the largest value is 1 and the smallest value is 0. Here is an example of what I am trying to accomplish
(check-expect (squash (list 100 90 70 20)) ...
0
votes
1
answer
188
views
Make manifest file from imperative command
I am reading on k8s it has 2 method to use it. Both of them are complement of each other.
Today I tried one feature to get a declarative (manifest file).
Suppose I create namespace instance
$ ...