DORSETRIGS
Home

functional-programming (41 post)


posts by category not found!

Is there some literature on this type of programming?

Exploring Literature on Programming Paradigms Programming is an ever evolving field and understanding different programming paradigms is crucial for any develop

3 min read 08-10-2024 32
Is there some literature on this type of programming?
Is there some literature on this type of programming?

Explanation of lists:fold function

Unfolding the Mystery Understanding fold in List Processing In the world of programming lists are a fundamental data structure They allow us to organize and man

2 min read 07-10-2024 19
Explanation of lists:fold function
Explanation of lists:fold function

Currying a function that takes infinite arguments

Currying Functions with an Infinite Appetite Mastering Variadic Currying Currying a powerful functional programming technique involves transforming a function t

2 min read 07-10-2024 15
Currying a function that takes infinite arguments
Currying a function that takes infinite arguments

Index inside map() function

Accessing Indices Inside the map Function A Guide for Java Script Developers The map function is a powerful tool in Java Script for transforming arrays However

2 min read 07-10-2024 15
Index inside map() function
Index inside map() function

Pass a typed function as a parameter in Dart

Passing Typed Functions as Parameters in Dart Darts flexible nature allows us to pass functions as arguments to other functions adding a level of dynamism to ou

2 min read 07-10-2024 39
Pass a typed function as a parameter in Dart
Pass a typed function as a parameter in Dart

What exactly is meant by "partial function" in functional programming?

Unlocking the Power of Partial Functions in Functional Programming In the world of functional programming the concept of a partial function might sound a bit cr

2 min read 06-10-2024 43
What exactly is meant by "partial function" in functional programming?
What exactly is meant by "partial function" in functional programming?

Difference between flatMap, flatTap, evalMap and evalTap

Navigating the Flow Understanding flat Map flat Tap eval Map and eval Tap in Reactive Programming Reactive programming with its elegant approach to handling asy

3 min read 06-10-2024 47
Difference between flatMap, flatTap, evalMap and evalTap
Difference between flatMap, flatTap, evalMap and evalTap

typehint the builtin map to provide parallel alternatives

Type Hinting map for Parallel Power Boosting Python Performance Pythons built in map function is a versatile tool for applying a function to every element in an

2 min read 04-10-2024 34
typehint the builtin map to provide parallel alternatives
typehint the builtin map to provide parallel alternatives

How to use Stream.collect with specific class as suplider

How to Use Stream collect with a Specific Class as a Supplier in Java Javas Stream API provides a powerful way to process collections of data One of its most us

3 min read 04-10-2024 47
How to use Stream.collect with specific class as suplider
How to use Stream.collect with specific class as suplider

Trouble implementing beta-reduction rules in Haskell for a case construct

Trouble Implementing Beta Reduction Rules in Haskell for a Case Construct In functional programming beta reduction refers to the process of applying functions t

3 min read 29-09-2024 45
Trouble implementing beta-reduction rules in Haskell for a case construct
Trouble implementing beta-reduction rules in Haskell for a case construct

Problem using select and filter when used in purrr::compose with purrr::partial in R

Understanding the Problem of Using select and filter with purrr compose and purrr partial in R When working with the R programming language especially in the co

2 min read 25-09-2024 51
Problem using select and filter when used in purrr::compose with purrr::partial in R
Problem using select and filter when used in purrr::compose with purrr::partial in R

Implementing reduce in Scala (Scala FP)

Implementing reduce in Scala A Functional Programming Approach Scala is renowned for its support of functional programming paradigms and one of the key concepts

2 min read 15-09-2024 43
Implementing reduce in Scala (Scala FP)
Implementing reduce in Scala (Scala FP)

LanguageExt - How do I avoid a double await when the Match lambda is async?

Language Ext Avoiding Double Await When Using Async Match Lambda When working with asynchronous programming in NET especially with libraries like Language Ext y

2 min read 14-09-2024 39
LanguageExt - How do I avoid a double await when the Match lambda is async?
LanguageExt - How do I avoid a double await when the Match lambda is async?

Why is `Prelude.mod` a total function?

Understanding Why Prelude mod is a Total Function in Haskell In Haskell the concept of total functions plays a crucial role in ensuring that functions behave pr

2 min read 14-09-2024 51
Why is `Prelude.mod` a total function?
Why is `Prelude.mod` a total function?

What are some pros/cons to various functional languages?

Choosing the Right Functional Language A Guide to Pros and Cons Choosing the right programming language can be a daunting task especially when venturing into th

2 min read 07-09-2024 49
What are some pros/cons to various functional languages?
What are some pros/cons to various functional languages?

List comprehension vs. lambda + filter

List Comprehension vs Lambda Filter Which is Better for Filtering Lists When working with lists in Python you often need to filter them based on specific criter

2 min read 07-09-2024 36
List comprehension vs. lambda + filter
List comprehension vs. lambda + filter

Get a function's arity

Determining the Arity of a Java Script Function Understanding the arity of a function is crucial for building robust and predictable Java Script applications Ar

2 min read 07-09-2024 50
Get a function's arity
Get a function's arity

How to use filter, map, and reduce in Python 3

Understanding the Changes in filter map and reduce from Python 2 to Python 3 The code you provided demonstrates a common point of confusion for Python developer

2 min read 06-09-2024 69
How to use filter, map, and reduce in Python 3
How to use filter, map, and reduce in Python 3

Find subarray with given sum

Finding Subarrays with a Given Sum A Functional Approach Finding a subarray within a given array that sums up to a specific target value is a common problem in

3 min read 06-09-2024 44
Find subarray with given sum
Find subarray with given sum

Java 8 Lambda expressions for solving fibonacci (non recursive way)

Demystifying Fibonacci with Java 8 Lambda Expressions A Non Recursive Approach Lambda expressions in Java 8 offer a concise and elegant way to express functiona

2 min read 06-09-2024 69
Java 8 Lambda expressions for solving fibonacci (non recursive way)
Java 8 Lambda expressions for solving fibonacci (non recursive way)

Project Euler #1 in JavaScript on HackerRank

Solving Project Euler 1 in Java Script on Hacker Rank Introduction to Project Euler 1 Project Euler 1 one of the classic programming challenges prompts you to f

2 min read 05-09-2024 53
Project Euler #1 in JavaScript on HackerRank
Project Euler #1 in JavaScript on HackerRank

functional programming in kotlin - assigning function

Assigning Functions in Kotlin A Functional Programming Deep Dive Kotlins embrace of functional programming concepts allows for powerful and expressive code One

2 min read 05-09-2024 64
functional programming in kotlin - assigning function
functional programming in kotlin - assigning function

Haskell rotate list of lists

Rotating Lists of Lists in Haskell A Deep Dive Rotating a list of lists where each inner list represents a row is a common problem in programming This article w

2 min read 05-09-2024 51
Haskell rotate list of lists
Haskell rotate list of lists

How to use reduce function correctly with functional programming in kotlin

Mastering the Reduce Function in Kotlin for Functional Programming A Deep Dive Kotlins reduce function is a powerful tool for functional programming allowing yo

2 min read 05-09-2024 51
How to use reduce function correctly with functional programming in kotlin
How to use reduce function correctly with functional programming in kotlin

find longest repeating sequence in list

Finding the Longest Repeating Sequence in a List A Practical Guide Finding the longest repeating sequence in a list is a common problem in computer science with

3 min read 04-09-2024 47
find longest repeating sequence in list
find longest repeating sequence in list