plebeia
Functional storage using Merkle Patricia tree
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Stdlib.List end
drop n xs
drops the first n
elements from xs
. If xs
is shorter than n
, drop n xs
returns []
.
split_at 3 [1;2;3;4;5] = ([1;2;3], [4;5])
split_at 3 [1;2] = ([1;2], [])
is_prefix p xs
checks p
is a prefix of xs
. If it is, it returns the Some postfix
, where postfix
is the rest of xs
without the prefix.
Otherwise, it returns None
.