Compare commits

...

5 commits
v0.1.1 ... main

Author SHA1 Message Date
Dominic Grimm 0bc58806c5 Update 'README.md' 2022-05-28 06:42:20 +00:00
Dominic Grimm 25e97b95de added to_a method 2021-12-11 10:54:31 +01:00
Dominic Grimm 9707f5d179 fixed types 2021-11-20 14:50:11 +01:00
Dominic Grimm 97429418ec updated version 2021-11-20 14:48:55 +01:00
Dominic Grimm 489f132e77 updated types 2021-11-20 14:47:27 +01:00
4 changed files with 8 additions and 8 deletions

View file

@ -11,7 +11,7 @@ A library for working with LIFO like data structures (stacks, queues).
```yaml
dependencies:
lifo:
github: grimmigerFuchs/lifo
git: https://git.dergrimm.net/dergrimm/lifo.git
```
2. Run `shards install`

View file

@ -1,6 +1,6 @@
name: lifo
description: A library for working with LIFO like data structures (stacks, queues).
version: 0.1.1
version: 0.1.3
authors:
- Dominic Grimm <dominic.grimm@gmail.com>

View file

@ -1,5 +1 @@
require "./lifo/version"
require "./lifo/exception"
require "./lifo/lifolike"
require "./lifo/stack"
require "./lifo/queue"
require "./lifo/*"

View file

@ -9,12 +9,16 @@ module Lifo
end
end
def size : Int
def size : Int32
@data.size
end
def empty? : Bool
size == 0
end
def to_a : Array(T)
@data
end
end
end