php-functional.git
6 years agoMake lists event lazier feature/lazy-solution
widmogrod [Sat, 30 Dec 2017 21:00:34 +0000 (22:00 +0100)] 
Make lists event lazier

6 years agoRefactor filter function to work only on Listt
widmogrod [Sat, 30 Dec 2017 01:05:00 +0000 (02:05 +0100)] 
Refactor filter function to work only on Listt

6 years agoMerge pull request #85 from widmogrod/feature/make-list-more-lazy 4.1.0
Gabriel Habryn [Sat, 30 Dec 2017 21:08:36 +0000 (22:08 +0100)] 
Merge pull request #85 from widmogrod/feature/make-list-more-lazy

Small refactoring

6 years agoMaybe is not foldable
widmogrod [Fri, 29 Dec 2017 23:18:52 +0000 (00:18 +0100)] 
Maybe is not foldable

6 years agoImprove type hints
widmogrod [Fri, 29 Dec 2017 22:32:55 +0000 (23:32 +0100)] 
Improve type hints

6 years agoListtConst::of now only puts value into context (as it should)
widmogrod [Fri, 29 Dec 2017 22:18:14 +0000 (23:18 +0100)] 
ListtConst::of now only puts value into context (as it should)

6 years agoMerge pull request #84 from widmogrod/feature/fix-io 4.0.1
Gabriel Habryn [Thu, 28 Dec 2017 23:34:29 +0000 (00:34 +0100)] 
Merge pull request #84 from widmogrod/feature/fix-io

Feature/fix io

6 years agoMake Primitive\Sum tests much more nicer
widmogrod [Thu, 28 Dec 2017 23:25:55 +0000 (00:25 +0100)] 
Make Primitive\Sum tests much more nicer

6 years agoMake Primitive\Num tests much more nicer
widmogrod [Thu, 28 Dec 2017 23:23:56 +0000 (00:23 +0100)] 
Make Primitive\Num tests much more nicer

6 years agoMake Primitive\Product tests much more nicer
widmogrod [Thu, 28 Dec 2017 23:22:43 +0000 (00:22 +0100)] 
Make Primitive\Product tests much more nicer

6 years agoremove curry from laws tests
widmogrod [Thu, 28 Dec 2017 23:18:21 +0000 (00:18 +0100)] 
remove curry from laws tests

6 years agoMake Stringg tests much more nicer
widmogrod [Thu, 28 Dec 2017 23:16:55 +0000 (00:16 +0100)] 
Make Stringg tests much more nicer

6 years agoFix IO\getArgs() use now Listt
widmogrod [Thu, 28 Dec 2017 23:06:25 +0000 (00:06 +0100)] 
Fix IO\getArgs() use now Listt

6 years agoMerge pull request #83 from widmogrod/feature/aline-comments
Gabriel Habryn [Sun, 24 Dec 2017 00:06:09 +0000 (01:06 +0100)] 
Merge pull request #83 from widmogrod/feature/aline-comments

align comments

6 years agoUpdate interface of Traversable
widmogrod [Sat, 23 Dec 2017 21:25:12 +0000 (22:25 +0100)] 
Update interface of Traversable

6 years agoRemove getEmpty() methods
widmogrod [Sat, 23 Dec 2017 21:24:57 +0000 (22:24 +0100)] 
Remove getEmpty() methods

6 years agoUpdate interface of Setoid
widmogrod [Sat, 23 Dec 2017 21:21:51 +0000 (22:21 +0100)] 
Update interface of Setoid

6 years agoSimplify FantasyLand\Monoid instance
widmogrod [Sat, 23 Dec 2017 21:19:30 +0000 (22:19 +0100)] 
Simplify FantasyLand\Monoid instance

6 years agoUpdate interface of Apply
widmogrod [Sat, 23 Dec 2017 21:10:20 +0000 (22:10 +0100)] 
Update interface of Apply

6 years agoUpdate map & bind signatures
widmogrod [Sat, 23 Dec 2017 21:07:26 +0000 (22:07 +0100)] 
Update map & bind signatures

6 years agoUpdate interface of Functor
widmogrod [Sat, 23 Dec 2017 20:46:32 +0000 (21:46 +0100)] 
Update interface of Functor

6 years agoUpdate interface of Semigroup
widmogrod [Sat, 23 Dec 2017 20:31:58 +0000 (21:31 +0100)] 
Update interface of Semigroup

6 years agoalign comments
widmogrod [Sat, 23 Dec 2017 20:04:03 +0000 (21:04 +0100)] 
align comments

6 years agoMerge pull request #76 from widmogrod/feature/strict_types 4.0.0
Gabriel Habryn [Thu, 21 Dec 2017 21:49:31 +0000 (22:49 +0100)] 
Merge pull request #76 from widmogrod/feature/strict_types

declare(strict_types=1)

6 years agodeclare(strict_types=1)
widmogrod [Thu, 21 Dec 2017 21:43:43 +0000 (22:43 +0100)] 
declare(strict_types=1)

6 years agoMerge pull request #75 from widmogrod/feature/increase-code-cov
Gabriel Habryn [Thu, 21 Dec 2017 21:31:23 +0000 (22:31 +0100)] 
Merge pull request #75 from widmogrod/feature/increase-code-cov

Feature/increase code cov

6 years agoMake tests more deterministic
widmogrod [Thu, 21 Dec 2017 21:24:44 +0000 (22:24 +0100)] 
Make tests more deterministic

6 years agoRemove experimental Monad\Control\doo
widmogrod [Thu, 21 Dec 2017 21:17:25 +0000 (22:17 +0100)] 
Remove experimental Monad\Control\doo

6 years agoAdd SetoidLaws for Stringg
widmogrod [Thu, 21 Dec 2017 21:13:43 +0000 (22:13 +0100)] 
Add SetoidLaws for Stringg

6 years agoImprove code coverage for Sum
widmogrod [Thu, 21 Dec 2017 21:12:15 +0000 (22:12 +0100)] 
Improve code coverage for Sum

6 years agoImprove code coverage for String
widmogrod [Thu, 21 Dec 2017 21:12:06 +0000 (22:12 +0100)] 
Improve code coverage for String

6 years agoImprove code coverage for Product
widmogrod [Thu, 21 Dec 2017 21:11:54 +0000 (22:11 +0100)] 
Improve code coverage for Product

6 years agoMerge pull request #74 from widmogrod/feature/code-climat
Gabriel Habryn [Thu, 21 Dec 2017 21:03:04 +0000 (22:03 +0100)] 
Merge pull request #74 from widmogrod/feature/code-climat

Update CodeClimat integration

6 years agoGenerate code coverage properly
widmogrod [Thu, 21 Dec 2017 20:57:20 +0000 (21:57 +0100)] 
Generate code coverage properly

6 years agoGenerate code coverage properly
widmogrod [Thu, 21 Dec 2017 20:49:19 +0000 (21:49 +0100)] 
Generate code coverage properly

6 years agoGenerate code coverage properly
widmogrod [Thu, 21 Dec 2017 20:34:13 +0000 (21:34 +0100)] 
Generate code coverage properly

6 years agoUpload code coverage manually
widmogrod [Thu, 21 Dec 2017 20:24:39 +0000 (21:24 +0100)] 
Upload code coverage manually

6 years agoUpdate CodeClimat integration
widmogrod [Thu, 21 Dec 2017 20:07:09 +0000 (21:07 +0100)] 
Update CodeClimat integration

6 years agoMerge pull request #72 from widmogrod/feature/list-standardisation
Gabriel Habryn [Thu, 21 Dec 2017 19:44:58 +0000 (20:44 +0100)] 
Merge pull request #72 from widmogrod/feature/list-standardisation

List standardisation - wip

6 years agoUpdate tests to phpunit=6
widmogrod [Thu, 21 Dec 2017 19:38:35 +0000 (20:38 +0100)] 
Update tests to phpunit=6

6 years agoUpdate tests to phpunit=6
widmogrod [Thu, 21 Dec 2017 18:47:12 +0000 (19:47 +0100)] 
Update tests to phpunit=6

6 years agoFunctional\constt test + implementation
widmogrod [Thu, 21 Dec 2017 18:37:01 +0000 (19:37 +0100)] 
Functional\constt test + implementation

6 years agoUpdate function docbloc
widmogrod [Thu, 21 Dec 2017 18:30:34 +0000 (19:30 +0100)] 
Update function docbloc

6 years agoRemove functions that are not needed yet.
widmogrod [Thu, 21 Dec 2017 18:25:03 +0000 (19:25 +0100)] 
Remove functions that are not needed yet.

6 years agoFunctional\cycle tests
widmogrod [Thu, 21 Dec 2017 18:11:00 +0000 (19:11 +0100)] 
Functional\cycle tests

6 years agoFunctional\replicate tests + implementation
widmogrod [Thu, 21 Dec 2017 18:01:28 +0000 (19:01 +0100)] 
Functional\replicate tests + implementation

6 years agoFunctional\iterate tests
widmogrod [Thu, 21 Dec 2017 17:58:19 +0000 (18:58 +0100)] 
Functional\iterate tests

6 years agoFunctional\unzip make to work on infinite lists
widmogrod [Thu, 21 Dec 2017 17:53:38 +0000 (18:53 +0100)] 
Functional\unzip make to work on infinite lists

6 years agoFunctional\zip make to work on infinite lists
widmogrod [Thu, 21 Dec 2017 17:28:23 +0000 (18:28 +0100)] 
Functional\zip make to work on infinite lists

6 years agoImprove operations on lists to make them lazy always
widmogrod [Thu, 21 Dec 2017 17:19:19 +0000 (18:19 +0100)] 
Improve operations on lists to make them lazy always

6 years agoFunctional\take & drop can work on infinite lists
widmogrod [Thu, 21 Dec 2017 16:55:28 +0000 (17:55 +0100)] 
Functional\take & drop can work on infinite lists

6 years agoUpdate thrown exception docblock
widmogrod [Thu, 21 Dec 2017 16:54:49 +0000 (17:54 +0100)] 
Update thrown exception docblock

6 years agoFunctional\repeat test + implementation
widmogrod [Thu, 21 Dec 2017 16:54:23 +0000 (17:54 +0100)] 
Functional\repeat test + implementation

6 years agoFunctional\drop test + implementation
widmogrod [Thu, 21 Dec 2017 15:40:45 +0000 (16:40 +0100)] 
Functional\drop test + implementation

6 years agoFunctional\take test + implementation
widmogrod [Thu, 21 Dec 2017 15:33:15 +0000 (16:33 +0100)] 
Functional\take test + implementation

6 years agoReplace all Listt::mempty() with fromNil
widmogrod [Thu, 21 Dec 2017 12:30:30 +0000 (13:30 +0100)] 
Replace all Listt::mempty() with fromNil

6 years agoRefactor remaining call_user_func_array
widmogrod [Thu, 21 Dec 2017 12:26:08 +0000 (13:26 +0100)] 
Refactor remaining call_user_func_array

6 years agoIntroduce Functional\fromNil - produce empty list
widmogrod [Thu, 21 Dec 2017 12:19:36 +0000 (13:19 +0100)] 
Introduce Functional\fromNil - produce empty list

6 years agoFunctional\unzip tests
widmogrod [Thu, 21 Dec 2017 01:47:48 +0000 (02:47 +0100)] 
Functional\unzip tests

6 years agoMake Listt lazy
widmogrod [Thu, 21 Dec 2017 01:41:02 +0000 (02:41 +0100)] 
Make Listt lazy

6 years agoRefactor listt
widmogrod [Wed, 20 Dec 2017 20:59:20 +0000 (21:59 +0100)] 
Refactor listt

6 years agoIntroduce new functions tail, head, length
widmogrod [Wed, 20 Dec 2017 20:59:09 +0000 (21:59 +0100)] 
Introduce new functions tail, head, length

6 years agoFunctional\tail test
widmogrod [Wed, 20 Dec 2017 20:58:46 +0000 (21:58 +0100)] 
Functional\tail test

6 years agoFunctional\length test
widmogrod [Wed, 20 Dec 2017 20:58:36 +0000 (21:58 +0100)] 
Functional\length test

6 years agoFunctional\head test
widmogrod [Wed, 20 Dec 2017 20:58:22 +0000 (21:58 +0100)] 
Functional\head test

6 years agoRename Monad\Free2 to Monad\Free
widmogrod [Wed, 20 Dec 2017 18:47:54 +0000 (19:47 +0100)] 
Rename Monad\Free2 to Monad\Free

6 years agoRefactor function match and introduce PatternMatcher
widmogrod [Wed, 20 Dec 2017 18:44:00 +0000 (19:44 +0100)] 
Refactor function match and introduce PatternMatcher

6 years agoFunctional\applicator tests
widmogrod [Wed, 20 Dec 2017 17:58:48 +0000 (18:58 +0100)] 
Functional\applicator tests

6 years agoFunctional\valueOf tests
widmogrod [Wed, 20 Dec 2017 17:52:05 +0000 (18:52 +0100)] 
Functional\valueOf tests

6 years agoSimplify Functional\tee
widmogrod [Wed, 20 Dec 2017 17:44:42 +0000 (18:44 +0100)] 
Simplify Functional\tee

6 years agoFunctiona\reverse tests
widmogrod [Wed, 20 Dec 2017 17:42:55 +0000 (18:42 +0100)] 
Functiona\reverse tests

6 years agoFunctional\join tests
widmogrod [Wed, 20 Dec 2017 17:30:46 +0000 (18:30 +0100)] 
Functional\join tests

6 years agoFunctiona\filter test
widmogrod [Wed, 20 Dec 2017 17:20:48 +0000 (18:20 +0100)] 
Functiona\filter test

6 years agoreplace call_user_func to native function invocation
widmogrod [Wed, 20 Dec 2017 16:21:18 +0000 (17:21 +0100)] 
replace call_user_func to native function invocation

6 years agoUse fromValue
widmogrod [Wed, 20 Dec 2017 00:19:35 +0000 (01:19 +0100)] 
Use fromValue

6 years agoremove functions like toTraversable/Foldabe
widmogrod [Wed, 20 Dec 2017 00:17:37 +0000 (01:17 +0100)] 
remove functions like toTraversable/Foldabe

6 years agorefactor filterM foldM
widmogrod [Wed, 20 Dec 2017 00:13:51 +0000 (01:13 +0100)] 
refactor filterM foldM

6 years agoReplace all usages of Listt::of with fromIterable
widmogrod [Tue, 19 Dec 2017 21:24:02 +0000 (22:24 +0100)] 
Replace all usages of Listt::of with fromIterable

6 years agoListt::of now only accepts iterables
widmogrod [Tue, 19 Dec 2017 21:20:13 +0000 (22:20 +0100)] 
Listt::of now only accepts iterables

6 years agoFix concat behaviour
widmogrod [Tue, 19 Dec 2017 20:30:52 +0000 (21:30 +0100)] 
Fix concat behaviour

6 years agoapply new curry style
widmogrod [Tue, 19 Dec 2017 19:18:25 +0000 (20:18 +0100)] 
apply new curry style

6 years agoReorder functions
widmogrod [Tue, 19 Dec 2017 19:13:07 +0000 (20:13 +0100)] 
Reorder functions

6 years agoClean up old Free implementation
widmogrod [Tue, 19 Dec 2017 17:54:58 +0000 (18:54 +0100)] 
Clean up old Free implementation

6 years agoRemove old Free implementation
widmogrod [Tue, 19 Dec 2017 17:52:14 +0000 (18:52 +0100)] 
Remove old Free implementation

6 years agoList standardisation - wip
widmogrod [Tue, 19 Dec 2017 16:01:17 +0000 (17:01 +0100)] 
List standardisation - wip

6 years agoMerge pull request #71 from widmogrod/feature/php71
Gabriel Habryn [Tue, 19 Dec 2017 16:29:18 +0000 (17:29 +0100)] 
Merge pull request #71 from widmogrod/feature/php71

Use array destructuring instead of list()

6 years agoUse array destructuring instead of list()
widmogrod [Tue, 19 Dec 2017 15:13:31 +0000 (16:13 +0100)] 
Use array destructuring instead of list()

6 years agoMerge pull request #68 from tPl0ch/feature/listt 3.4.0
Gabriel Habryn [Sun, 17 Dec 2017 15:57:06 +0000 (16:57 +0100)] 
Merge pull request #68 from tPl0ch/feature/listt

Implement `Listt::head` and `Listt::tail`

6 years agoFixing Code Standards violations
Thomas Ploch [Wed, 13 Dec 2017 17:42:12 +0000 (18:42 +0100)] 
Fixing Code Standards violations

6 years agoImplement `Listt::head` and `Listt::tail`
Thomas Ploch [Wed, 13 Dec 2017 17:34:15 +0000 (18:34 +0100)] 
Implement `Listt::head` and `Listt::tail`

This is a first draft on continuation for
https://github.com/widmogrod/php-functional/issues/46

Also added *Eris* randomized property test extension (QuickCheck port)

Implementation uses generators to treat all `iterable` the same way.

6 years agoMerge pull request #67 from widmogrod/feature/bdd-2
Gabriel Habryn [Wed, 13 Dec 2017 00:27:46 +0000 (01:27 +0100)] 
Merge pull request #67 from widmogrod/feature/bdd-2

Free Monad example that create simple DSL for BDD framework

6 years agoUpdate readme
widmogrod [Wed, 13 Dec 2017 00:21:32 +0000 (01:21 +0100)] 
Update readme

6 years agoUpdate readme about new example
widmogrod [Wed, 13 Dec 2017 00:14:58 +0000 (01:14 +0100)] 
Update readme about new example

6 years agoBDD test framework style implemented using Free Monad
widmogrod [Wed, 13 Dec 2017 00:10:04 +0000 (01:10 +0100)] 
BDD test framework style implemented using Free Monad

6 years agoMerge pull request #66 from widmogrod/feature/php-7-minimum 3.3.0
Gabriel Habryn [Tue, 12 Dec 2017 23:16:40 +0000 (00:16 +0100)] 
Merge pull request #66 from widmogrod/feature/php-7-minimum

update composer.json and require php >= 7.1

6 years agoexclude vendor
widmogrod [Tue, 12 Dec 2017 23:06:47 +0000 (00:06 +0100)] 
exclude vendor

6 years agoUpdate php-cs-fixer
widmogrod [Tue, 12 Dec 2017 22:56:11 +0000 (23:56 +0100)] 
Update php-cs-fixer

6 years agoupdate composer.json and require php >= 7.1
widmogrod [Tue, 12 Dec 2017 22:38:54 +0000 (23:38 +0100)] 
update composer.json and require php >= 7.1

6 years agoMerge pull request #65 from widmogrod/tPl0ch-feature/maybe-monoid 3.2.0
Gabriel Habryn [Tue, 12 Dec 2017 21:23:06 +0000 (22:23 +0100)] 
Merge pull request #65 from widmogrod/tPl0ch-feature/maybe-monoid

Maybe Monoid small improvements

6 years agoMake Maybe Monoid tests more sain
widmogrod [Tue, 12 Dec 2017 21:12:03 +0000 (22:12 +0100)] 
Make Maybe Monoid tests more sain