JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

brushift

core-api


    function

    (brushift n & shifts)

    Returns the value of integer `n` bit shifted right by the sum of 
    all values in `shifts`; integers only. The sign of `n` is not 
    preserved, so for positive shifts the return value is always be 
    positive.


1 exampleSign in to add an example
Loading...
(= (brushift 2r1000 1 1 1) 2r0001)
# => true
sogaiuPlayground