Skip to content

Commit 447ab9c

Browse files
refactor(examples): update headers in Standard library
1 parent 0944c01 commit 447ab9c

File tree

14 files changed

+14
-15
lines changed

14 files changed

+14
-15
lines changed

examples/08_stdlib/01_letFunction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Function `let`
1+
# let
22

33
**let** is a useful function defined in Kotlin Standard Library. It can be used for scoping and null-checks.
44

examples/08_stdlib/02_withFunction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# with Function
1+
# with
22

33
*with* is a function defined in the standard library that can be used to access members of an object in a more concise way, avoiding having to
44
prefix each member with the instance name.

examples/08_stdlib/03_filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Function `filter`
1+
# filter
22

33
*filter* is a function defined in the standard library that can be used to filter collection. It takes a predicate as an lambda-paramters.
44

examples/08_stdlib/04_map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Function `map`
1+
# map
22

33
*map* is an extension function defined in the standard library that can be used to transform collection into another collection. It takes a transformer as an lambda-paramters.
44

examples/08_stdlib/05_existential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Existential Predicates `any`, `all`, `none`
1+
# any, all, none
22

33
This extension functions answer the question about existence element(s) in collection based on given predicate.
44

examples/08_stdlib/06_find.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Functions `find`, `findLast`
1+
# find
22

33
Returns the first of last element matching the given predicate, or null if no such element was found.
44

examples/08_stdlib/07_firstlast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Functions `first`,`last`, `firstOrNull`, `lastOrNull`
1+
# first, last
22

33
### `first`, `last`
44

examples/08_stdlib/08_count.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Function `count`
1+
# count
22

33
The extension function `count` returns either the total number of elements in collection or the number of elements matching the given predicate.
44

examples/08_stdlib/09_partition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Function *partition* `partition` partition [__partition__](http://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/partition.html)
1+
# partition
22

33
This function splits the original collection into pair of lists, where first list contains elements for which predicate yielded `true`, while second list contains elements for which predicate yielded `false`.
44

examples/08_stdlib/10_associateBy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Function `associateBy`, `groupBy`
1+
# associateBy, groupBy
22

33
Both functions return a `Map` containing the elements from the given collection indexed by the key returned from `keySelector` function applied to each element.
44
If `valueSelector` is also passed it is applied to each element as well.

0 commit comments

Comments
 (0)