digit-loops

Crates.iodigit-loops
lib.rsdigit-loops
version1.0.0
sourcesrc
created_at2022-06-21 17:06:40.040534
updated_at2022-06-21 17:06:40.040534
descriptionRust crate for finding the number of loops in given numbers
homepagehttps://github.com/JonasJore/digit-loops.git
repositoryhttps://github.com/JonasJore/digit-loops
max_upload_size
id610379
size608,261
Jonas Jore (JonasJore)

documentation

https://docs.rs/digit-loops/latest/digit_loops/

README

digit-loops

Description

Rust library for finding out how many loops there are in a given string of digits

Inspired by this puzzle found somewhere on Facebook:

puzzle_image

Usage

use digit_loops;

digit_loops::number_of_loops_in_number("8888");
// => 8
Commit count: 1

cargo fmt