Advertisement
Guest User

Break in core

a guest
Feb 17th, 2021
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- RHS size: {terms: 17, types: 11, coercions: 0, joins: 0/1}
  2. fibonacci :: Int -> Int
  3. [GblId, Arity=1, Unf=OtherCon []]
  4. fibonacci
  5.   = \ (n :: Int) ->
  6.       letrec {
  7.         list [Occ=LoopBreaker] :: [Int]
  8.         [LclId]
  9.         list
  10.           = break<10>(list)
  11.             : (I# 1#)
  12.               (break<9>(list)
  13.                : (I# 1#)
  14.                  (break<8>(list)
  15.                   zipWith (+ $fNumInt) list (break<7>(list) tail list))); } in
  16.       break<11>(n,list) !! list n
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement