Ah yes of course... the same applies to the CLR. 

On Wednesday, April 9, 2014 1:46:37 PM UTC-4, James Reeves wrote:
>
> AFAIK, the JVM doesn't have a bytecode instruction for this, and therefore 
> there's no mechanism to do this in Clojure except by using quot and rem 
> separately.
>
> - James
>
>
> On 9 April 2014 18:11, Anthony Ortiz <anthon...@gmail.com <javascript:>>wrote:
>
>> No because that's simply calling what is essentially the same function 
>> twice. Internally the quotient and remainder functions are the same, the 
>> only difference is which part of the result they return. If I call the 
>> quotient function and then I call the remainder function then I am 
>> performing the same exact division twice and from a performance perspective 
>> I am wondering if there's a function that returns both values but only 
>> performs the division calculation once.
>>
>>
>> On Wednesday, April 9, 2014 1:05:12 PM UTC-4, Sam Ritchie wrote:
>>>
>>> So you DON'T mean:
>>>
>>> (juxt quot rem)
>>>
>>> ?
>>>
>>>   -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to