All Questions
Tagged with functional-programming beginner
74 questions
2
votes
1
answer
89
views
Meta Collatz Sequence
Context
Chapter 6 of Learn You A Haskell contains a function called chain, which outputs the Collatz sequence of a given input.
(In short, it takes a natural number....
5
votes
1
answer
337
views
Validate Finnish IBANs
I am currently studying an online course in Haskell and there are no "model examples" of the assignments after finishing them. I'm slowly getting the hang of this, but I'd like some feedback ...
1
vote
0
answers
40
views
Relational join of two datasets
Front Matter
I'm learning Scala and have not gotten used to functional programming and the language. I'm hoping a review of my naively implemented code can help me bridge my object-oriented ways to ...
2
votes
0
answers
128
views
Download and parse XML data from a URL every minute with F#
The purpose
This code is intended to achieve the following goals:-
Create a hard coded list of lifts, this is pretty static and I add some extra info so I'm ok with this being in the code but I may ...
2
votes
1
answer
356
views
Garden simulator [closed]
I tried to write the program so that it runs without error but I want to improve the program so that it follows the Single Responsibility Principle. What changes can I make to improve this program? I ...
1
vote
1
answer
85
views
Cardinal to ordinal numbers in F# code reuse
I've been experimenting with the F# Bolero environment to learn F# a bit and I was trying to get the hang of pattern matching by generating ordinal numbers (1st, 2nd, 3rd, ...) from cardinal numbers (...
3
votes
2
answers
65
views
3
votes
1
answer
301
views
Print each word of a sentence in a new line
this is my first F# program, very simple concept but took me a few minutes to get it. I'm new to functional programming so I'd appreciate if you could have a look ...
5
votes
1
answer
307
views
Two player random number guessing game
I've created a two-player number guessing game in Haskell. My main objective was to practice dealing with "state" in a purely functional language (such as player scores, whose turn it is, ...
2
votes
0
answers
93
views
Dynamic text rendering from form data, Express proxy server API requests, and validation in React
I've created a Node.js/Express application that accepts personal data in a form on the front end with React (name, address, etc). It's purpose is to take a user's name, address, and some other info ...
2
votes
1
answer
2k
views
Simple Haskell Parser
I'm very new to haskell (I never used Monads, Functors and other things) and FP in general. I decided to write the simplest parser I possibly can with some expansion possibilities. (I have a general ...
1
vote
1
answer
733
views
Poker Hand Evaluator in Haskell
The idea is to represent a hand as a list of cards and create a frequency mapping, which can then be used to identify what rank of hand you have and arrange your hand in a way that allows the Ord type ...
6
votes
3
answers
1k
views
Finding even or odd numbers
I'm looking for critiques to see what I could have done better or different ways I could approach writing a script for finding even or odd numbers. I am new to programming with JavaScript, and ...
5
votes
2
answers
207
views
Removing OO style coding from Haskell
Having coded in Objected-Oriented style my entire programming career, it's hard to adapt to functional style fully.
I implemented a simple Hangman game:
...
6
votes
1
answer
134
views
A simple reactjs form to calculate the liquidity ratio, daily cost of running, and days cash on hand
This is just a very simple form that tells you the liquidity ratio, daily cost of running, and days cash on hand of a company, given their current assets, current liabilities, and total expense of the ...