This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module QuickSortPermutationSimple | |
#push-options "--fuel 1 --ifuel 1" | |
//Some auxiliary definitions to make this a standalone example | |
let rec length #a (l:list a) | |
: nat | |
= match l with | |
| [] -> 0 | |
| _ :: tl -> 1 + length tl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module QuickSortMem | |
//Some auxiliary definitions to make this a standalone example | |
let rec length #a (l:list a) | |
: nat | |
= match l with | |
| [] -> 0 | |
| _ :: tl -> 1 + length tl | |
let rec append #a (l1 l2:list a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module QuickSortPermutation | |
#push-options "--fuel 1 --ifuel 1" | |
//Some auxiliary definitions to make this a standalone example | |
let rec length #a (l:list a) | |
: nat | |
= match l with | |
| [] -> 0 | |
| _ :: tl -> 1 + length tl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module QuickSortMemSimple | |
let rec length #a (l:list a) | |
: nat | |
= match l with | |
| [] -> 0 | |
| _ :: tl -> 1 + length tl | |
let rec append #a (l1 l2:list a) | |
: list a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"project": { | |
"name": "New project", | |
"id": "new", | |
"creationTs": 1691921932988, | |
"lastModifiedTs": 1691923674233 | |
}, | |
"graph": { | |
"nodes": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:collection/collection.dart'; | |
void main() { | |
print([1,2,3].isEqualToIgnoringOrdering({3,2,1})); // true | |
} | |
extension IsEqualToIgnoringOrdering<T> on Iterable<T> { | |
bool isEqualToIgnoringOrdering(Iterable<T> other) { | |
return const UnorderedIterableEquality().equals(this, other); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
targets: | |
$default: | |
sources: | |
exclude: | |
- "**/components/**" | |
- "**/exceptions/**" | |
- "test/**" | |
builders: | |
gql_build|schema_builder: |