Skip to content

Commit

Permalink
feat: Updated packages/website/src/pages/docs/Api/
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Oct 29, 2023
1 parent 6c416f2 commit 61a84e7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/website/src/pages/docs/Api/Danger.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ Danger.optimalAllocationGivenDiminishingMarginalReturnsForManyFunctions(

Note also that the array ought to have more than one function in it.

### combinations
```
Danger.combinations: (list<any>, number) => list<list<any>>
```
Generates all possible combinations of length r from the given list.

```squiggle
Danger.combinations([1, 2, 3], 2)) // [[1, 2], [1, 3], [2, 3]]
```

### allCombinations
```
Expand All @@ -121,13 +112,4 @@ Generates all possible combinations of length r from the given list.
Danger.combinations([1, 2, 3], 2)) // [[1, 2], [1, 3], [2, 3]]
```

### allCombinations
```
Danger.allCombinations: (list<any>) => list<list<any>>
```
Returns all possible combinations of the elements in the input list.

```squiggle
Danger.allCombinations([1, 2, 3])) // [[1], [2], [3], [1, 2], [1, 3], [2, 3], [1, 2, 3]]
```
Returns all possible combinations of any length from the given list.

0 comments on commit 61a84e7

Please sign in to comment.