Base 36 constructor

Open
#48 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
tooling

Research direction

Start by reading the BitSet constructor and the existing toString(base) behavior described in the issue. Determine how a base-36 string could round-trip into a BitSet, and consider the expected behavior of a constructor form such as BitSet(value, 36); done means the intended conversion is implemented or clearly documented.

Written by the indexing model from the issue text.

Description

Hello, For input, you have 0b101010101010 and 0xa6e etc etc..

You have the ability to do const b36 = BitSet('10101010110101010101010101010').toString(36)
But not sure how to get it back in const bs = BitSet(b36)

I am sure you are gonna say it's not possible.. but I just wanted to confirm that something like BitSet(b36, 36) didn't exist?

Dominant language
JavaScript
Stars
238
Forks
31
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rawify/BitSet.js

All issues in rawify/BitSet.js

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.