Advertisement
C4Cypher

Haskell style?

Aug 17th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.12 KB | None | 0 0
  1. stack_to_list(L, Start, End) =
  2.     [ get(local(Start),L) |
  3.         ( Start > End -> []
  4.         ; stack_to_list(L, Start + 1, End) )
  5.     ].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement