fthomas / fthomas/refined

Sorted predicates

Open
#630 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Scala
Stars
1.7k
Forks
152
Avg merge
1h 20m
Merged PRs (30d)
6

Description

As discussed in #6, there is room for a `Sorted` predicate. I'm currently running into use cases where an algorithm's implementation differs for sorted and unsorted collections. If we can decide on a type signature, I can start with the implementation. With regards to the sort direction, in my opinion we can do two things:

1. we can just assume ascending.
2. we can provide some sort of enum type which describes the direction.

I'd like to hear opinions on this. Also, our implicit `Validate` will need some sort of (implicit) `Ordering` to decide if the collection is sorted or not.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.