Skip to main content
Code Review

Questions tagged [functional-programming]

Use this tag for programs where "functional" style is important - likely making use of function composition and without side-effects. NOT simply because your code contains functions!

Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

I am looking for a good way to structure my Kotlin code using Spring Boot 4 and Spring 7. The new features I am using are: Reflectionless dependency injection via ...
0 votes
0 answers
57 views

haskeline is a reimplementation in haskell of the GNU Readline library (the one that by default allows you to delete the word you just typed on your shell's command line by pressing Ctrl+w, for ...
4 votes
1 answer
142 views

Also posted on Reddit. As a small personal exercise, I'm trying to implement a notion of higher-kinded types in Rust using type-level defunctionalisation based on the "Lightweight higher-kinded ...
2 votes
2 answers
159 views

I am trying to manage state in vanilla JavaScript—without using frameworks like React or Vue. I am also not using state management libraries. My requirements are: Reactivity Time Travel (Undo/Redo) ...
5 votes
1 answer
152 views

In my application there are many business workflows. Most of them are quite simple and can be put in one function. A few of them however are very complex and have many business validations, require ...
3 votes
2 answers
172 views

Introduction The following code is an implementation of, in ambition, RFC 4648 compliant Base16, Base32 and Base64 conversions as range adaptors and constrained algorithms in C++23. It can be used at ...
2 votes
0 answers
115 views

This increment This obsoletes a former version, after taking a great review into account: The encoding now preserves sized_range and ...
3 votes
1 answer
216 views

Edit: obsoleted by an improved version. Edit: now updated with unit tests that show that this implementation also works for non-forward ranges, i.e. string streams, files streams, on-the-fly encoding/...
4 votes
2 answers
392 views

This obsoletes a former version and is obsoleted by an improved version. The following code is an implementation of, in ambition, RFC 4648 compliant Base16 conversions as range adaptors in C++23. It ...
4 votes
1 answer
242 views

This is obsoleted by a significantly better version. The following code is an implementation of hexadecimal conversions as range adaptors in C++23. It can be used at compile time, but should of course ...
5 votes
3 answers
311 views

The question asked is very straight-forward and is simple enough to solve. What I am looking for is that hopefully I can get some understanding for using the constructs and built-ins of the Haskell ...
5 votes
6 answers
493 views

I have a simple list of results, and I need to return only one value depending on content, for example: ...
3 votes
1 answer
439 views

An event source built around an observer design pattern implementation... ...
user avatar
1 vote
1 answer
92 views

Temporary storing the element(s) returned by document.querySelector and document.querySelectorAll methods could improve ...
user avatar
8 votes
1 answer
149 views

I want to get better at functional programming so I started with this simple 2-player TicTacToe game. Next I want to add a simple min-max algorithm to make it a 1-player game, but before that I'd like ...

15 30 50 per page
1
2 3 4 5
...
68

AltStyle によって変換されたページ (->オリジナル) /