Open octylFractal opened 2 years ago
Parts of the stdlib do not follow typical FP paradigms, e. g. Array allows you to access the last element only if the array is non-empty, rather than returning an Option. This results in needing a wrapper type to handle these kinds of operations.
Array
last
Option
Parts of the stdlib do not follow typical FP paradigms, e. g.
Array
allows you to access thelast
element only if the array is non-empty, rather than returning anOption
. This results in needing a wrapper type to handle these kinds of operations.