# 常见函数操作

- [A](https://www.selinux.tech/scala/function-operation/a.md)
- [aggregate](https://www.selinux.tech/scala/function-operation/a/aggregate.md)
- [andThen](https://www.selinux.tech/scala/function-operation/a/andthen.md)
- [appended](https://www.selinux.tech/scala/function-operation/a/appended.md)
- [appendedAll](https://www.selinux.tech/scala/function-operation/a/appendedall.md)
- [C](https://www.selinux.tech/scala/function-operation/c.md)
- [chain](https://www.selinux.tech/scala/function-operation/c/chain.md)
- [collect](https://www.selinux.tech/scala/function-operation/c/collect.md)
- [collectFirst](https://www.selinux.tech/scala/function-operation/c/collectfirst.md)
- [combinations](https://www.selinux.tech/scala/function-operation/c/combinations.md)
- [compose](https://www.selinux.tech/scala/function-operation/c/compose.md)
- [concat](https://www.selinux.tech/scala/function-operation/c/concat.md)
- [cond](https://www.selinux.tech/scala/function-operation/c/cond.md)
- [condOpt](https://www.selinux.tech/scala/function-operation/c/condopt.md)
- [const](https://www.selinux.tech/scala/function-operation/c/const.md)
- [contains](https://www.selinux.tech/scala/function-operation/c/contains.md)
- [containsSlice](https://www.selinux.tech/scala/function-operation/c/containsslice.md)
- [copyToArray](https://www.selinux.tech/scala/function-operation/c/copytoarray.md)
- [corresponds](https://www.selinux.tech/scala/function-operation/c/corresponds.md)
- [count](https://www.selinux.tech/scala/function-operation/c/count.md)
- [curried](https://www.selinux.tech/scala/function-operation/c/curried.md)
- [D](https://www.selinux.tech/scala/function-operation/d.md)
- [diff](https://www.selinux.tech/scala/function-operation/d/diff.md)
- [distinct](https://www.selinux.tech/scala/function-operation/d/distinct.md)
- [distinctBy](https://www.selinux.tech/scala/function-operation/d/distinctby.md)
- [drop](https://www.selinux.tech/scala/function-operation/d/drop.md)
- [dropRight](https://www.selinux.tech/scala/function-operation/d/dropright.md)
- [dropWhile](https://www.selinux.tech/scala/function-operation/d/dropwhile.md)
- [E](https://www.selinux.tech/scala/function-operation/e.md)
- [empty(PartialFunction)](https://www.selinux.tech/scala/function-operation/e/empty-partialfunction.md)
- [empty(collections)](https://www.selinux.tech/scala/function-operation/e/empty-collections.md)
- [endsWith](https://www.selinux.tech/scala/function-operation/e/endswith.md)
- [exists](https://www.selinux.tech/scala/function-operation/e/exists.md)
- [F](https://www.selinux.tech/scala/function-operation/f.md)
- [fill](https://www.selinux.tech/scala/function-operation/f/fill.md)
- [filter](https://www.selinux.tech/scala/function-operation/f/filter.md)
- [filterKeys](https://www.selinux.tech/scala/function-operation/f/filterkeys.md)
- [filterNot](https://www.selinux.tech/scala/function-operation/f/filternot.md)
- [find](https://www.selinux.tech/scala/function-operation/f/find.md)
- [findLast](https://www.selinux.tech/scala/function-operation/f/findlast.md)
- [flatMap](https://www.selinux.tech/scala/function-operation/f/flatmap.md)
- [flatten](https://www.selinux.tech/scala/function-operation/f/flatten.md)
- [fold](https://www.selinux.tech/scala/function-operation/f/fold.md)
- [foldLeft](https://www.selinux.tech/scala/function-operation/f/foldleft.md)
- [foldRight](https://www.selinux.tech/scala/function-operation/f/foldright.md)
- [forall](https://www.selinux.tech/scala/function-operation/f/forall.md)
- [foreach](https://www.selinux.tech/scala/function-operation/f/foreach.md)
- [fromFunction](https://www.selinux.tech/scala/function-operation/f/fromfunction.md)
- [G](https://www.selinux.tech/scala/function-operation/g.md)
- [getOrElse (Map)](https://www.selinux.tech/scala/function-operation/g/getorelse-map.md)
- [getOrElse (Option)](https://www.selinux.tech/scala/function-operation/g/getorelse-option.md)
- [groupBy](https://www.selinux.tech/scala/function-operation/g/groupby.md)
- [groupMap](https://www.selinux.tech/scala/function-operation/g/groupmap.md)
- [groupMapReduce](https://www.selinux.tech/scala/function-operation/g/groupmapreduce.md)
- [grouped](https://www.selinux.tech/scala/function-operation/g/grouped.md)
- [H](https://www.selinux.tech/scala/function-operation/h.md)
- [head](https://www.selinux.tech/scala/function-operation/h/head.md)
- [headOption](https://www.selinux.tech/scala/function-operation/h/headoption.md)
- [I](https://www.selinux.tech/scala/function-operation/i.md)
- [indexOf](https://www.selinux.tech/scala/function-operation/i/indexof.md)
- [indexOfSlice](https://www.selinux.tech/scala/function-operation/i/indexofslice.md)
- [indexWhere](https://www.selinux.tech/scala/function-operation/i/indexwhere.md)
- [indices](https://www.selinux.tech/scala/function-operation/i/indices.md)
- [init](https://www.selinux.tech/scala/function-operation/i/init.md)
- [inits](https://www.selinux.tech/scala/function-operation/i/inits.md)
- [intersect](https://www.selinux.tech/scala/function-operation/i/intersect.md)
- [isDefinedAt (Map)](https://www.selinux.tech/scala/function-operation/i/isdefinedat-map.md)
- [isDefinedAt (Seq)](https://www.selinux.tech/scala/function-operation/i/isdefinedat-seq.md)
- [isEmpty](https://www.selinux.tech/scala/function-operation/i/isempty.md)
- [isTraversableAgain](https://www.selinux.tech/scala/function-operation/i/istraversableagain.md)
- [K](https://www.selinux.tech/scala/function-operation/k.md)
- [keys](https://www.selinux.tech/scala/function-operation/k/keys.md)
- [L](https://www.selinux.tech/scala/function-operation/l.md)
- [last](https://www.selinux.tech/scala/function-operation/l/last.md)
- [lastIndexOf](https://www.selinux.tech/scala/function-operation/l/lastindexof.md)
- [lastIndexOfSlice](https://www.selinux.tech/scala/function-operation/l/lastindexofslice.md)
- [lastIndexWhere](https://www.selinux.tech/scala/function-operation/l/lastindexwhere.md)
- [lastOption](https://www.selinux.tech/scala/function-operation/l/lastoption.md)
- [length](https://www.selinux.tech/scala/function-operation/l/length.md)
- [lift](https://www.selinux.tech/scala/function-operation/l/lift.md)
- [M](https://www.selinux.tech/scala/function-operation/m.md)
- [map](https://www.selinux.tech/scala/function-operation/m/map.md)
- [mapConserve](https://www.selinux.tech/scala/function-operation/m/mapconserve.md)
- [mapValues](https://www.selinux.tech/scala/function-operation/m/mapvalues.md)
- [max](https://www.selinux.tech/scala/function-operation/m/max.md)
- [maxBy](https://www.selinux.tech/scala/function-operation/m/maxby.md)
- [maxByOption](https://www.selinux.tech/scala/function-operation/m/maxbyoption.md)
- [maxOption](https://www.selinux.tech/scala/function-operation/m/maxoption.md)
- [min](https://www.selinux.tech/scala/function-operation/m/min.md)
- [minBy](https://www.selinux.tech/scala/function-operation/m/minby.md)
- [minByOption](https://www.selinux.tech/scala/function-operation/m/minbyoption.md)
- [minOption](https://www.selinux.tech/scala/function-operation/m/minoption.md)
- [mkString](https://www.selinux.tech/scala/function-operation/m/mkstring.md)
- [N](https://www.selinux.tech/scala/function-operation/n.md)
- [nonEmpty](https://www.selinux.tech/scala/function-operation/n/nonempty.md)
- [O](https://www.selinux.tech/scala/function-operation/o.md)
- [orElse](https://www.selinux.tech/scala/function-operation/o/orelse.md)
- [P](https://www.selinux.tech/scala/function-operation/p.md)
- [padTo](https://www.selinux.tech/scala/function-operation/p/padto.md)
- [par](https://www.selinux.tech/scala/function-operation/p/par.md)
- [partition](https://www.selinux.tech/scala/function-operation/p/partition.md)
- [partitionMap](https://www.selinux.tech/scala/function-operation/p/partitionmap.md)
- [patch](https://www.selinux.tech/scala/function-operation/p/patch.md)
- [permutations](https://www.selinux.tech/scala/function-operation/p/permutations.md)
- [prefixLength](https://www.selinux.tech/scala/function-operation/p/prefixlength.md)
- [prepended](https://www.selinux.tech/scala/function-operation/p/prepended.md)
- [prependedAll](https://www.selinux.tech/scala/function-operation/p/prependedall.md)
- [product](https://www.selinux.tech/scala/function-operation/p/product.md)
- [R](https://www.selinux.tech/scala/function-operation/r.md)
- [range](https://www.selinux.tech/scala/function-operation/r/range.md)
- [reduce](https://www.selinux.tech/scala/function-operation/r/reduce.md)
- [reduceLeft](https://www.selinux.tech/scala/function-operation/r/reduceleft.md)
- [reduceLeftOption](https://www.selinux.tech/scala/function-operation/r/reduceleftoption.md)
- [reduceOption](https://www.selinux.tech/scala/function-operation/r/reduceoption.md)
- [reduceRight](https://www.selinux.tech/scala/function-operation/r/reduceright.md)
- [reduceRightOption](https://www.selinux.tech/scala/function-operation/r/reducerightoption.md)
- [reverse](https://www.selinux.tech/scala/function-operation/r/reverse.md)
- [reverseIterator](https://www.selinux.tech/scala/function-operation/r/reverseiterator.md)
- [reverseMap](https://www.selinux.tech/scala/function-operation/r/reversemap.md)
- [runWith](https://www.selinux.tech/scala/function-operation/r/runwith.md)
- [S](https://www.selinux.tech/scala/function-operation/s.md)
- [sameElements](https://www.selinux.tech/scala/function-operation/s/sameelements.md)
- [scan](https://www.selinux.tech/scala/function-operation/s/scan.md)
- [scanLeft](https://www.selinux.tech/scala/function-operation/s/scanleft.md)
- [scanRight](https://www.selinux.tech/scala/function-operation/s/scanright.md)
- [search](https://www.selinux.tech/scala/function-operation/s/search.md)
- [segmentLength](https://www.selinux.tech/scala/function-operation/s/segmentlength.md)
- [size](https://www.selinux.tech/scala/function-operation/s/size.md)
- [slice](https://www.selinux.tech/scala/function-operation/s/slice.md)
- [sliding](https://www.selinux.tech/scala/function-operation/s/sliding.md)
- [sortBy](https://www.selinux.tech/scala/function-operation/s/sortby.md)
- [sortWith](https://www.selinux.tech/scala/function-operation/s/sortwith.md)
- [sorted](https://www.selinux.tech/scala/function-operation/s/sorted.md)
- [span](https://www.selinux.tech/scala/function-operation/s/span.md)
- [splitAt](https://www.selinux.tech/scala/function-operation/s/splitat.md)
- [startsWith](https://www.selinux.tech/scala/function-operation/s/startswith.md)
- [sum](https://www.selinux.tech/scala/function-operation/s/sum.md)
- [T](https://www.selinux.tech/scala/function-operation/t.md)
- [tabulate](https://www.selinux.tech/scala/function-operation/t/tabulate.md)
- [tail](https://www.selinux.tech/scala/function-operation/t/tail.md)
- [tails](https://www.selinux.tech/scala/function-operation/t/tails.md)
- [take](https://www.selinux.tech/scala/function-operation/t/take.md)
- [takeRight](https://www.selinux.tech/scala/function-operation/t/takeright.md)
- [takeWhile](https://www.selinux.tech/scala/function-operation/t/takewhile.md)
- [transpose](https://www.selinux.tech/scala/function-operation/t/transpose.md)
- [tupled](https://www.selinux.tech/scala/function-operation/t/tupled.md)
- [U](https://www.selinux.tech/scala/function-operation/u.md)
- [unfold](https://www.selinux.tech/scala/function-operation/u/unfold.md)
- [union](https://www.selinux.tech/scala/function-operation/u/union.md)
- [unlift](https://www.selinux.tech/scala/function-operation/u/unlift.md)
- [untupled](https://www.selinux.tech/scala/function-operation/u/untupled.md)
- [unzip](https://www.selinux.tech/scala/function-operation/u/unzip.md)
- [unzip3](https://www.selinux.tech/scala/function-operation/u/unzip3.md)
- [updated](https://www.selinux.tech/scala/function-operation/u/updated.md)
- [V](https://www.selinux.tech/scala/function-operation/v.md)
- [values](https://www.selinux.tech/scala/function-operation/v/values.md)
- [view](https://www.selinux.tech/scala/function-operation/v/view.md)
- [W](https://www.selinux.tech/scala/function-operation/w.md)
- [withFilter](https://www.selinux.tech/scala/function-operation/w/withfilter.md)
- [withDefault](https://www.selinux.tech/scala/function-operation/w/withdefault.md)
- [withDefaultValue](https://www.selinux.tech/scala/function-operation/w/withdefaultvalue.md)
- [Z](https://www.selinux.tech/scala/function-operation/z.md)
- [zip](https://www.selinux.tech/scala/function-operation/z/zip.md)
- [zipAll](https://www.selinux.tech/scala/function-operation/z/zipall.md)
- [zipWithIndex](https://www.selinux.tech/scala/function-operation/z/zipwithindex.md)
- [map](https://www.selinux.tech/scala/function-operation/map.md)
- [flatmap](https://www.selinux.tech/scala/function-operation/flatmap.md)
- [filter](https://www.selinux.tech/scala/function-operation/filter.md)
- [reduceLeft](https://www.selinux.tech/scala/function-operation/reduceleft.md)
- [foldLeft](https://www.selinux.tech/scala/function-operation/foldleft.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.selinux.tech/scala/function-operation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
