Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

leroycep/utils.zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utils.zig

This is a repo with miscellaneous code that I found useful while programming.

ArrayDeque(T)

An array that supports pushBack, pushFront, popBack, and popFront in constant time.

Grid and ConstGrid

A slice, but in two dimensions! I created this during Advent of Code.

Importantly, it has the concept of a row stride that allows making a rectangular "slice". Combining this with the set and copy function makes rendering to a bitmap easy, whether it is a grid of pixels or a grid of characters.

In the future it may be extended to support arbitrary dimensions.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages