mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
add space
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
01da174c2f
commit
d342815494
1 changed files with 3 additions and 3 deletions
|
@ -7,12 +7,12 @@ interface Box
|
|||
## optimization for advanced use cases with large values. A platform may require
|
||||
## that some values are boxed.
|
||||
##
|
||||
## expect Box.unbox(Box.box "Stack Faster") == "Stack Faster"
|
||||
## expect Box.unbox (Box.box "Stack Faster") == "Stack Faster"
|
||||
box : a -> Box a
|
||||
|
||||
## Returns a boxed value.
|
||||
##
|
||||
## expect Box.unbox(Box.box "Stack Faster") == "Stack Faster"
|
||||
## expect Box.unbox (Box.box "Stack Faster") == "Stack Faster"
|
||||
unbox : Box a -> a
|
||||
|
||||
# # we'd need reset/reuse for box for this to be efficient
|
||||
|
@ -22,4 +22,4 @@ unbox : Box a -> a
|
|||
# boxed
|
||||
# |> Box.unbox
|
||||
# |> transform
|
||||
# |> Box.box
|
||||
# |> Box.box
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue