Explorer

core.strings-in

description
The items from index that are in set
type
Fn(items: List<String>, set: List<String>, index: Number) -> List<String>
expression
fn(items$0, set$1, index$2) =>
  match @core.list-get(list: $0, index: $2) {
    #none(_) =>
      [],
    #some(item$1004) =>
      let item$3 = $1004;
      @core.list-concat(
        left: match @core.list-contains-string(list: $1, target: $3, index: 0) {
          true =>
            [$3],
          false =>
            []
        },
        right: @core.strings-in(items: $0, set: $1, index: @core.plus(left: $2, right: 1))
      )
  }
visibility
public
core.strings-in (project definy, branch compiled-tests, snapshot i6TqClmqVS9FK8rKOvJ43l6Tevx8pvYJ5-zaQqNwemc)
id: LRG45eK9N86CAH3GfMZ8G5FlXh_rFuSvLJTVy4XdK2w
content hash: hIsJc4k8ZAwgLEwqKhSWxRnhnBN65yJFZLKl-BK2mLI