Last active
August 29, 2015 14:05
-
-
Save jbmorley/30aaebf160030696044e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to-report list-items-greater-than [ cutoff listA ] | |
;; Initially ensure the list is reverse sorted. | |
set listA reverse (sort listA) | |
let result [] | |
foreach listA [ | |
if ?1 >= floor cutoff [ | |
set result lput ?1 result | |
] | |
] | |
report result | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment