Explorer

core.number-list-contains

description
Whether the list contains the number from index on
type
Fn(list: List<Number>, value: Number, index: Number) -> Boolean
expression
fn(list$0, value$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      false,
    #some(item$1003) =>
      match @core.equal(left: $1003, right: $1) {
        true =>
          true,
        false =>
          @core.number-list-contains(list: $0, value: $1, index: @core.plus(left: $2, right: 1))
      }
  }
visibility
public
core.number-list-contains (project definy, branch main, snapshot CfIAXM725tR74SWd4aoTUz4-JJQfqnllblZbQ2Sv204)
id: HWlEj2okdueRlEDyxuJoLHCtzyGZOUmWo2WgST7PbEc
content hash: veOphGGWEAIBo0cuQObP2pc87SkSKyJUbqKI5OeMN8o