Questions tagged [declarative-programming]

Declarative programming is a paradigm of expressing the logic of a computer program or computation without explicit describing its control flow.

78 questions
-2
votes
2 answers

Use declarative approach to shift ArrayList elements instead of using a loop

Could you please point out a way to shift the elements of the list below, without using a for loop? Please note that the first element of the list is not affected by the operation performed. From [2, 3, 4, 5] the list would become [2, 2, 3,…
user13123978
-2
votes
3 answers

Is Haskell an imperative or declarative paradigm?

I have read some sources where the Haskell's paradigm is described as functional but imperative paradigm. The main source where this is said is Wikipedia. How is possible a functional and imperative paradigm at the same time, or is this a mistake?
-3
votes
5 answers

Declarative Language

I was reading an article on Declarative Programming Languages. If I don't understand the qualities of this type/paradigm of programming languages and it's contrast to Imperative languages, should I just read up on programming in this type of…
1 2 3 4 5
6