Skip to content

Nim library for converting sequences to strings. Also has PHP-inspired explode and implode procs.

License

Notifications You must be signed in to change notification settings

jackvandrunen/sequester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.}

About

Nim library for converting sequences to strings. Also has PHP-inspired explode and implode procs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages