#CodeWorld is collecting feedback on poor #GHC error messages. This one is fun!
list :: [(Int,Int)]
list = [(x,y)
| x <-[0..100]
, y <- [1..x-1]
, x+y mod 17 == 0]
GHC suggests "x is applied to too few arguments" on line 2. Can you explain why?
#Haskell
Ending the day with date function in #javascript
And applying some of the function in my project
Ending of day is not so good but it is better to do something then doing nothing ☺️
#CodeLife#codeworld
Following an idea by @shapr, #CodeWorld now has fuzzy autocomplete. Got it to be pretty smart by playing with edit-distance costs.
Tricks:
1. Transposition is cheap
2. Changing case is cheaper than replacing different letters
3. Edits after cursor pos are cheaper than before.