weavejester / medley

A lightweight library of useful Clojure functions
Eclipse Public License 1.0
865 stars 66 forks source link

Add natural? predicate #20

Closed tkocmathla closed 7 years ago

tkocmathla commented 7 years ago

This PR adds a new predicate that returns true if a number is a natural number, using the definition that includes zero.

weavejester commented 7 years ago

You mean like nat-int? in Clojure 1.9?

tkocmathla commented 7 years ago

Yep, I didn't realize that had been added (obviously)! Thanks for the pointer.

weavejester commented 7 years ago

No problem 👍