DEV Community

Discussion on: Golfing language extensions

Collapse
 
leonschoorl profile image
Leon Schoorl

Oops, I broke my own rule on not having runtime errors.

The first empty list can't be a hole, or the bangpattern will trigger a deferred type error. +1 char
But I forgot the use the unicode in the view pattern. -1 char

h_=id @(__)mdo if|let?_=(#'h,#)[0x0.0^0e0| !x#[]|(in+0b_0)_,then\case]

So still 76 chars, 24 language extensions, 2 ghc flags