Logo
  • Introduction
  • Language Guide
    • Type System
    • Expressions
    • Builtin Functions
      • Collections
      • Construction
      • Conversion
      • Math
      • Generic
        • add
        • contains
        • compare
        • decision table and bucketing
        • flatMap
        • indexOf
        • isNone
        • isError
        • isSet
        • isSome
        • keyOf
        • join
        • left
        • len
        • some
        • right
      • Persisted Data
      • String
      • Statistical
      • Temporal
    • Other Features
  • Install & Setup
  • Data Modelling Guide
  • Developer Guide
  • Tools
ALFA
  • Docs »
  • Language Guide »
  • Builtin Functions »
  • right

right¶

Extract the last n elements from an object.

Parameters:

No. Type Comments
1 string or list< T > Object to extract values from
2 int Number of elements extract from the end

Returns:

string? or list< T >?

The extracted result. Note the result is optional, and none is returned if its not possible extract the required number of elements.

Usages:

  • right( v:list<T>, count : int ) : list<T>?
  • right( v:string, count : int ) : string?

© Copyright 2025 Schemarise Ltd | Privacy | Terms