TY for intercalate!! Hoogle is good, but not quite good enough to suggest it when I searched the signature String -> [String] -> String
String -> [String] -> String
If you look at the haskell solutions now only one passes. Everything else no longer does. The reference solution is incorrect now.
for the last one the result in either the if or else case is the same right? I could def see the condition being depth <= 0 to silently move past unbalanced parentheses though.
depth <= 0
I have been acting like a wildman trying to find what I'm doing wrong!! Thank you!!
This comment is hidden because it contains spoiler information about the solution
I wrote a gcd function, and it of course collided with Prelude's, so I took it out. At no point did I stop and think that if Prelude defines a GCD function it stands to reason that it would provide an LCM function too.
You're really close! What's the formula for distance between two points?
YO I just saw this since I'm not on here enough but this is GREAT!! I'm honored! TYSM
ooh smart to use range. If you want to go point free you can flip the direction of composition
List.range 1 >> List.map insertElements
Sure: relevant wikipedia article section and the relevant image (transparent SVG so click through the first link to wikipedia).
I'll update the description if this becomes a stumbling block for more people.
JSYK you never need a break after a return in a case. In fact a lot of linter rules will tell you to take that out.
TYVM for doing this!! Loving learning elm through these kata
This language is so fun!! TY very much for translating this kata into it!
^_^ yay so glad I could introduce you to some fun new techniques!!