gleam-lang / gleam-lang/stdlib

Argument labels for bit_array.slice and string.slice are inconsistent

Open
#555 7 comments 2 reactions 0 assignees View on GitHub
Dominant language
Gleam
Stars
710
Forks
225
Avg merge
5h 52m
Merged PRs (30d)
3

Description

```gleam
// bit_array
pub fn slice(
from string: BitArray,
at position: Int,
take length: Int,
) -> Result(BitArray, Nil)

// string
pub fn slice(
from string: String,
at_index idx: Int,
length len: Int,
) -> String
```

It would be nice if they had the same labels. I tried looking for more functions like that, but I didn't find anything else.

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.