pub const BYNK_LIST_SRC: &str = "commons bynk.list {\n\t---\n\tDeprecated: use `xs.reverse()`. Returns the elements of `xs` in reverse order.\n\t---\n\tfn reverse[A](xs: List[A]) -> List[A] {\n\t\txs.reverse()\n\t}\n\n\t---\n\tDeprecated: use `xs.map(f)`. Applies `f` to each element of `xs`, returning the\n\tresults in the same order.\n\t---\n\tfn map[A, B](xs: List[A], f: A -> B) -> List[B] {\n\t\txs.map(f)\n\t}\n\n\t---\n\tDeprecated: use `xs.filter(p)`. Returns the elements of `xs` that satisfy the\n\tpredicate `p`, in order.\n\t---\n\tfn filter[A](xs: List[A], p: A -> Bool) -> List[A] {\n\t\txs.filter(p)\n\t}\n\n\t---\n\tDeprecated: use `xs.find(p)`. Returns the first element of `xs` satisfying `p`,\n\tor `None` if none does.\n\t---\n\tfn find[A](xs: List[A], p: A -> Bool) -> Option[A] {\n\t\txs.find(p)\n\t}\n\n\t---\n\tDeprecated: use `xs.any(p)`. True if at least one element of `xs` satisfies\n\t`p`; false for an empty list.\n\t---\n\tfn any[A](xs: List[A], p: A -> Bool) -> Bool {\n\t\txs.any(p)\n\t}\n\n\t---\n\tDeprecated: use `xs.all(p)`. True if every element of `xs` satisfies `p`; true\n\tfor an empty list.\n\t---\n\tfn all[A](xs: List[A], p: A -> Bool) -> Bool {\n\t\txs.all(p)\n\t}\n\n\t---\n\tDeprecated: use `xs.traverse(f)`. Runs the effectful `f` over each element of\n\t`xs` in order, collecting the results into a single `Effect` that yields the\n\tlist of outputs.\n\t---\n\tfn traverse[A, B](xs: List[A], f: A -> Effect[B]) -> Effect[List[B]] {\n\t\txs.traverse(f)\n\t}\n\n\t---\n\tDeprecated: use `xs.sort()`. Returns the elements of `xs` in ascending order.\n\tThe sort is stable, and the order is the type\'s own: `Float` puts `NaN` last, a\n\ttype that `derives Ord` orders by declaration order.\n\t---\n\tfn sort[T: Ord](xs: List[T]) -> List[T] {\n\t\txs.sort()\n\t}\n\n\t---\n\tDeprecated: use `xs.min()`. Returns the smallest element of `xs`, or `None`\n\tfor an empty list.\n\t---\n\tfn min[T: Ord](xs: List[T]) -> Option[T] {\n\t\txs.min()\n\t}\n\n\t---\n\tDeprecated: use `xs.max()`. Returns the largest element of `xs`, or `None` for\n\tan empty list.\n\t---\n\tfn max[T: Ord](xs: List[T]) -> Option[T] {\n\t\txs.max()\n\t}\n}\n";Expand description
bynk.list — combinators over the List kernel (fold, prepend,
length, get, foldEff), written in ordinary Bynk (decision 0034):
the first real consumer of v0.20a generics, lambdas, and effectful
traversal. Order-preserving combinators build with fold + prepend
and a final reverse — O(n) builds, never append (which would be
O(n²) over the array lowering).