I know I can ignore leftover part, but my concern is that exact-
integer-sqrt will calculate leftover if needed or not.

Why not 2 public functions?
like mzscheme's "integer-sqrt" and "integer-sqrt/remainder"

On Mar 30, 9:16 am, Mark Engelberg <mark.engelb...@gmail.com> wrote:
> If you don't care about the "leftover" portion that exact-integer-sqrt
> returns, you can do something like:
> (let [[floor-sqrt _] (exact-integer-sqrt n)] ...)
> or (first (exact-integer-sqrt n))
>
> so I didn't want to expose another function which returns only half of
> the information that this one does.
>
> On Sun, Mar 29, 2009 at 4:34 PM, hjlee <hj.d....@gmail.com> wrote:
> > I'm not sure, I think there might be cases the error part not needed.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to