package goblint
Static analysis framework for C
Install
dune-project
Dependency
Authors
Maintainers
Sources
goblint-2.6.0.tbz
sha256=20d5b7332a9f6072ab9ba86c4a53b898eaf681286c56a8805c41850bbf3ddf41
sha512=7c7685cfcd9aa866bc40e813df2bfcb3c79b3d40e615d8d6d0939c5798b9d70dd7f2ba87a741f5ba0ce891e9d254627207fb28057f1f2f6611e4e0d128fd6a71
doc/goblint.std/Goblint_std/GobList/index.html
Module Goblint_std.GobList
Source
The normal haskell zip that throws no exception
remove_common_prefix eq l1 l2
removes the common prefix (p
) of l1
and l2
and returns the rest of both lists a pair (l1', l2')
. Formally, p @ l1' = l1
and p @ l2' = l2
such that p
has maximal length.
This can be used to check being a prefix in both directions simultaneously:
- if
l1' = []
, thenl1
is a prefix ofl2
, - if
l2' = []
, thenl2
is a prefix ofl1
.
In other cases, the common prefix is not returned (i.e. reconstructed) for efficiency reasons.
Given a predicate and a list, returns two lists (l1, l2)
. l1
contains the prefix of the list until the last element that satisfies the predicate, l2
contains all subsequent elements. The order of elements is preserved.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>