Reputation
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 2 votes cast
Jan
5
comment Refactoring a long method which is based on large number of switch cases
FYI, "replacing switch case with polymorphism" in this scenario is called the Strategy pattern.
Nov
21
comment what is the purpose of arrows?
While arrows are definitely the wrong tool for your linked solution, I feel like I need to mention that removeAt' n = arr(\ xs -> (xs,xs)) >>> arr (take (n-1)) *** arr (drop n) >>> arr (uncurry (++)) >>> returnA can be more concisely and clearly written as removeAt' n = (arr (take $ n-1) &&& arr (drop n)) >>> (arr $ uncurry (++)).
Jan
4
awarded  Supporter