AxisSpec.unique: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/axis_spec.bend as AxisSpec Lines 93-98 of bendtorch-core@0.1.0.0/src/tensor/axis_spec.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/axis_spec.bend&start_line=93&end_line=98 import Base def unique(axes: List<&2, Nat>) -> Bool: match axes: case Nil{}: True{} case +head <> +tail: Bool.and(Bool.not(contains(head, tail)), unique(tail)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/axis_spec.bend&name=contains