Skip to main content

int set

Abstract

Counts the number of integers. 整数を数えます。

What does this do?

Counts the number of integers that can be any integer multiple within a given start and end. 始まりと終了を指定すると、その中に含まれる任意の整数倍となる整数の数を数えます。

Very Fast!!

usage

from int_set import IntSet, step

# IntSet makes range like object
# IntSetはrangeのようのオブジェクトを作成します。

_range = IntSet(100)       # start: 0 stop: 100
_range = IntSet(100, 1000) # start: 100 stop: 1000

s = step(2)   # a multiple of two(2の倍数)
s = step(2,5) # a multiple of 2 or a multiple of 5(2の倍数または5の倍数)

# Count multiples of 2 or 5 between 100 and 1000.
# 100 ~ 1000に含まれる2の倍数または5の倍数の数を数えます。
_range.count(s) # 541

install

pip install int-set

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

int_set-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

int_set-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file int_set-0.1.1.tar.gz.

File metadata

  • Download URL: int_set-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Darwin/18.7.0

File hashes

Hashes for int_set-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b17a5ffdf7baaece1421234a40c152906a41747b0d0051b3eb6e359703f46a19
MD5 a13055db133f16ead4d31d5b66d9e1a6
BLAKE2b-256 03b28a98e79048034eeb59dee073ebf9d753db7f7fdf48062f87fbc896b1de8a

See more details on using hashes here.

File details

Details for the file int_set-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: int_set-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.7 Darwin/18.7.0

File hashes

Hashes for int_set-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 43630bce7b11ff793ab07d9a22ee365db553cd3ac97460b6926fdffd7e0c2ac3
MD5 60da5648858105b9c371f9f4f7ef35de
BLAKE2b-256 7b5fe728335be86d258f957ba0ac7e20f61083cf92816d832a5a84c69a475f23

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page