Code: [Select all] [Download] GeSHi © Codebox Plus

[H|T]

Since in AHK there are no lists but objects and arrays, what I propose is to use formalism on arrays.

Code example in erlang Language where the formalism [H|T] divide the Head from the Tail of the list inside recursive append function.

Code: [Select all] [Download] GeSHi © Codebox Plus

append([H|T], Tail) ->

[H|append(T, Tail)];

append([], Tail) ->

Tail.

The great force of this formalism fits perfectly with the functional nature of AHK and would increase the expressive capabilities of v2.