Category Theory Functional Programming Haskell Javascript Monads Monads Not With "flatmap" But "flatunit"? October 21, 2024 Post a Comment Monads in category theory is defined by triples T, unit, flat⟩. class Monad t where map :: (a -&… Read more Monads Not With "flatmap" But "flatunit"?
Arrays Data Structures Functional Programming Javascript Sum Array Of Arrays (matrix) Vertically Efficiently/elegantly August 20, 2024 Post a Comment In Javascript, if I have an array of arrays representing a matrix, say x = [ [1,2,3,4], [5,… Read more Sum Array Of Arrays (matrix) Vertically Efficiently/elegantly
Function Functional Programming Javascript A Shorthand For Function.prototype.call.call? July 02, 2024 Post a Comment Ways to call a function Consider this simple function: function my(p) { console.log(p) } I can cal… Read more A Shorthand For Function.prototype.call.call?
Class Ecmascript 6 Functional Programming Inheritance Javascript Why Are Higher Order Functions Hiding My Es6 Class Properties? May 24, 2024 Post a Comment EDIT: I've added updated screenshots (at the end), for further clarification. I'm attemptin… Read more Why Are Higher Order Functions Hiding My Es6 Class Properties?
Functional Programming Javascript Referential Transparency Referential Transparency In Functional Programming May 24, 2024 Post a Comment I am new to JS and was learning functional programming and came across the term 'referential tr… Read more Referential Transparency In Functional Programming
Functional Programming Javascript Calculator On Javascript Functions May 03, 2024 Post a Comment I have recently encountered a question during an interview to implement a calculator using functio… Read more Calculator On Javascript Functions
Functional Programming Javascript Pass Result Of Functional Chain To Function April 21, 2024 Post a Comment If I have an array someArray that I first want to do some operations on and then pass that result t… Read more Pass Result Of Functional Chain To Function
Function Composition Functional Programming Javascript Js Functions Composed In The Opposite Order April 19, 2024 Post a Comment Starting with a simple function composition const fa = (x => (x + 'a')); const fb = (x =… Read more Js Functions Composed In The Opposite Order