brokenix,

What is beta reduced ( evaluated ) form of

(\1 - > ( x- > 1)) 2

where x is f abstraction and 1, 2 are literals

BoydStephenSmithJr,
@BoydStephenSmithJr@hachyderm.io avatar

@brokenix bottom :: Num b => a -> b, I think.

https://www.haskell.org/onlinereport/haskell2010/haskellch3.html#x8-260003.3 gives the result for a pattern-match failure on a lambda expression.

"I think" because your syntax is invalid, so I've given you the answer for (\1 -> (\x -> 1)) 2, which is, I think, the closest string (kpm edit distance) that is valid syntax.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • haskell
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines