No description
Find a file
2015-06-16 21:11:04 -04:00
.gitignore Added documentation 2015-06-16 23:21:07 -04:00
LICENSE Initial commit 2015-06-16 22:32:55 -04:00
README.md Added another string conversion and an iterator 2015-06-16 21:11:04 -04:00
sequester.nim Added another string conversion and an iterator 2015-06-16 21:11:04 -04:00
sequester.nimble Ready to add to nimble 2015-06-16 23:25:39 -04:00

Sequester

$ nimble install sequester

Sequester is a lightweight library for the Nim language that contains procedures to convert between sequences and strings. Additionally, it includes PHP-inspired explode and implode procedures.

Quick Docs

Complete documentation can be generated with the command nim doc sequester.nim, or found at http://fallingduck.net/docs/sequester.

The following procedures are exported:

proc asString*(s: openarray[char]): string {.noSideEffect, procvar.}

proc asString*(s: openarray[uint8]): string {.noSideEffect, procvar.}

proc asString*(s: openarray[int]): string {.noSideEffect, procvar.}

proc asString*(s: openarray[int8]): string {.noSideEffect, procvar.}

proc asIntSeq*(s: string): seq[int] {.noSideEffect, procvar.}

proc explode*(s: string; delimiter = ""): seq[string] {.noSideEffect,
    procvar.}

proc implode*(s: openarray[string]; separator = ""): string {.noSideEffect,
    procvar.}

iterator intItems*(s: string): int {.noSideEffect.}