mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
fix Roc formatting
This commit is contained in:
parent
a306d9b129
commit
ae6f9067b6
2 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ false = @Bool False
|
|||
## the logic [AND](https://en.wikipedia.org/wiki/Logical_conjunction)
|
||||
## gate. The infix operator `&&` can also be used as shorthand for
|
||||
## `Bool.and`.
|
||||
##
|
||||
##
|
||||
## ```
|
||||
## expect (Bool.and Bool.true Bool.true) == Bool.true
|
||||
## expect (Bool.true && Bool.true) == Bool.true
|
||||
|
|
|
@ -562,7 +562,7 @@ countIf = \list, predicate ->
|
|||
## List.keepOks [["a", "b"], [], [], ["c", "d", "e"]] List.last
|
||||
##
|
||||
## fn = \str -> if Str.isEmpty str then Err StrWasEmpty else Ok (Str.len str)
|
||||
##
|
||||
##
|
||||
## List.keepOks ["", "a", "bc", "", "d", "ef", ""]
|
||||
## ```
|
||||
keepOks : List before, (before -> Result after *) -> List after
|
||||
|
@ -580,7 +580,7 @@ keepOks = \list, toResult ->
|
|||
## List.keepErrs [["a", "b"], [], [], ["c", "d", "e"]] List.last
|
||||
##
|
||||
## fn = \str -> if Str.isEmpty str then Err StrWasEmpty else Ok (Str.len str)
|
||||
##
|
||||
##
|
||||
## List.keepErrs ["", "a", "bc", "", "d", "ef", ""]
|
||||
## ```
|
||||
keepErrs : List before, (before -> Result * after) -> List after
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue