23 Commits

Author SHA1 Message Date
Emir Pasic 41012c6c58 Improve code coverage 2022-04-13 16:52:21 +02:00
Emir Pasic 1f0b87f0e1 Implements json.Marshaler and json.Unmarshaler interfaces 2022-04-12 04:31:44 +02:00
Emir Pasic 08ae493e8a Implement NextTo and PrevTo for all iterators and containers (index or key, forward-only or reversable) 2022-04-12 01:20:56 +02:00
emirpasic c6630349c4 - bulk initialization for lists 2018-09-20 18:40:32 +02:00
Blake Miner 843fdb4848 Added Set(index, value) method to all Lists (closes #86)
Added tests
2018-09-19 14:41:47 -04:00
Emir Pasic 65869799a0 Revert "Revert "gofmt"" 2018-06-18 13:13:01 +02:00
Emir Pasic 076c527d93 Revert "gofmt" 2018-06-17 14:41:40 +02:00
ia 55e94ab1e3 all: gofmt
Run standard gofmt command on project root.

- go version go1.10.3 darwin/amd64

Signed-off-by: ia <isaac.ardis@gmail.com>
2018-06-17 01:02:33 +02:00
Mahadev e709a4b5ea Add IndexOf method to SinglyLinkedList 2017-12-26 19:19:18 +05:30
Emir Pasic 696bb0e577 - JSON serialization for all lists (test for singly linked list) 2017-03-06 01:12:33 +01:00
Emir Pasic efcbbe6274 - detailed extensive tests with breakdown on number of elements 2016-07-16 04:40:16 +02:00
Emir Pasic 213367f1ca - replace long bsd text with short in all .go files 2016-06-27 04:21:09 +02:00
Emir Pasic 57162feff5 - rename Reset() to Begin() in iterators (this will allow End() which will make reverse loops more readable) 2016-06-27 00:08:01 +02:00
Emir Pasic cbc23a5b79 - test iterator first on all iterable data structures 2016-06-26 23:58:23 +02:00
Emir Pasic 3a938233a0 - test iterator reset on all structures 2016-06-26 21:44:23 +02:00
Emir Pasic d7a31571cc - add reversible iterators to lists (array list and doubly-linked list)
- documentation and tests updates
2016-06-25 18:17:48 +02:00
Emir Pasic 616c850bff - refactor list's tests 2016-06-24 19:17:50 +02:00
Emir Pasic 544abaeab1 - remove map and select functions from enumerable interface, because this requires type assertions in chaining, which is really ugly and unnecessary. the only drawback is that one might forget to implement those functions and interface implementations asserts will not register that. (need help on this) 2016-06-24 06:20:24 +02:00
Emir Pasic 3b6a40775a - split enumerables into enumerables with keys and with indexes (same was done for iterators) 2016-06-22 21:03:51 +02:00
Emir Pasic 76f36e4980 - add enumerable and iterator to singly linked list 2016-06-22 05:29:21 +02:00
Emir Pasic 875dab737f - add insert for singlylinkedlist 2016-06-21 03:15:02 +02:00
Emir Pasic 9f6dbf940a add swap method on all lists 2015-03-14 00:36:10 +01:00
Emir Pasic 3aa1340d55 singly linked list (test+documentation). simplify of doubly linked list remove method 2015-03-10 04:14:40 +01:00