The size of a collection (i.e., its length).
Methods
size :: a -> IntStrict size computation.
Anti-patterns:
size xs == nwherenis0,1or another number that is likely smaller thansize xs. Similar forsize xs >= 1etc. Use natSize instead.natSize :: a -> PeanoLazily compute a (possibly infinite) size.
Use when comparing a size against a fixed number.
Instances18Sized, …
Sized ModuleNameDefined in Agda-2.7.0.1 · Agda.Syntax.Abstract.NameSized QNameDefined in Agda-2.7.0.1 · Agda.Syntax.Abstract.NameSized RawTopLevelModuleNameDefined in Agda-2.7.0.1 · Agda.Syntax.TopLevelModuleNameSized TopLevelModuleNameDefined in Agda-2.7.0.1 · Agda.Syntax.TopLevelModuleName · orphanSized OccursWhereDefined in Agda-2.7.0.1 · Agda.TypeChecking.Positivity.OccurrenceSized PermutationDefined in Agda-2.7.0.1 · Agda.Utils.PermutationSized IntSetDefined in Agda-2.7.0.1 · Agda.Utils.SizeSized (Tele a)Defined in Agda-2.7.0.1 · Agda.Syntax.InternalThe size of a telescope is its length (as a list).
Sized (List1 a)Defined in Agda-2.7.0.1 · Agda.Utils.SizeSized (SizedThing a)Defined in Agda-2.7.0.1 · Agda.Utils.SizeReturn the cached size.
Sized (IntMap a)Defined in Agda-2.7.0.1 · Agda.Utils.SizeSized (Seq a)Defined in Agda-2.7.0.1 · Agda.Utils.SizeSized (Set a)Defined in Agda-2.7.0.1 · Agda.Utils.SizeSized (HashSet a)Defined in Agda-2.7.0.1 · Agda.Utils.SizeSized [a]Defined in Agda-2.7.0.1 · Agda.Utils.SizeSized a => Sized (Abs a)Defined in Agda-2.7.0.1 · Agda.Syntax.InternalSized (Map k a)Defined in Agda-2.7.0.1 · Agda.Utils.SizeSized (HashMap k a)Defined in Agda-2.7.0.1 · Agda.Utils.Size