Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isUinteger32 #1281

Closed
char0n opened this issue Jan 21, 2020 · 2 comments
Closed

isUinteger32 #1281

char0n opened this issue Jan 21, 2020 · 2 comments

Comments

@char0n
Copy link
Owner

char0n commented Jan 21, 2020

Is your feature request related to a problem? Please describe.
Predicate to determine if the integer is 32 bits, unsigned, range [0, 2 ** 32)

Describe the solution you'd like

IMHO no need to check for the range but rather doing comparison like this would suffice:

const isUinteger32 = curry1(val => toUinteger32(val) === val);

Describe alternatives you've considered

Checking for the actual 32bit unsigned range of [0, 2 ** 32)

Additional context

We also need to alias this function as: isUint32

Blocked by toUinteger32

http://speakingjs.com/es5/ch11.html#_ranges_of_integers

@rhian-cs
Copy link
Contributor

rhian-cs commented May 2, 2022

Hey there! Can I give this issue a try?

@rhian-cs rhian-cs mentioned this issue May 3, 2022
@char0n
Copy link
Owner Author

char0n commented May 3, 2022

@rhian-cs sure, have a blast ;]

@char0n char0n closed this as completed in 965147e May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants