Great article!
I found two errors in your encapsulation example:
Array.sliceToEnd
Array.slice
Array.concatMany
Array.concatMany([first, [layer], [last]])
Assuming the Array module comes from ReScript's standard library Belt, of course.
Belt
Thanks for the feedback! Indeed, these are mistakes, fixed them (and found two more, 99 left I hope :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article!
I found two errors in your encapsulation example:
Array.sliceToEnd
should actually beArray.slice
based on the parameters.Array.concatMany
is missing a pair of square brackets (Array.concatMany([first, [layer], [last]])
)Assuming the Array module comes from ReScript's standard library
Belt
, of course.Thanks for the feedback! Indeed, these are mistakes, fixed them (and found two more, 99 left I hope :)