Advertisement
Guest User

Untitled

a guest
May 21st, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. map_floorKey([(H1, H2)], Key, Result) :- (Key >= H1), Result is H1.
  2. map_floorKey([(H1, H2), (H3, H4) | T], Key, Result) :- (Key >= H1), (H3 > Key), Result is H1.
  3. map_floorKey([(H1, H2) | T], Key, Result) :- map_floorKey(T, Key, Result).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement