Skip to content

Commit

Permalink
return a sequence and not a list
Browse files Browse the repository at this point in the history
  • Loading branch information
ranyitz committed Sep 30, 2023
1 parent 4ed16fd commit 9887c35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ splits a string into words based on the casing pattern
> can be used to create any custom naming pattern
```scala
Casing.split("fooBarBaz") // List(foo, Bar, Baz)
Casing.split("foo_bar_baz") // List(foo, bar, baz)
Casing.split("foo-bar-baz") // List(foo, bar, baz)
Casing.split("FOO_BAR_BAZ") // List(FOO, BAR, BAZ)
Casing.split("fooBarBaz") // Seq(foo, Bar, Baz)
Casing.split("foo_bar_baz") // Seq(foo, bar, baz)
Casing.split("foo-bar-baz") // Seq(foo, bar, baz)
Casing.split("FOO_BAR_BAZ") // Seq(FOO, BAR, BAZ)
```

### camelCase
Expand Down

0 comments on commit 9887c35

Please sign in to comment.