rust-prolog icon indicating copy to clipboard operation
rust-prolog copied to clipboard

improve list syntax sugar

Open dagit opened this issue 7 years ago • 0 comments

Currently [H|T] is sugar for cons(H,T), but this syntax should be more general and allow this form:

[H1, H2, ..., Hn | T]

Which translates to:

cons(H1, cons(H2, ..., cons(Hn, T)...)

dagit avatar Dec 05 '18 22:12 dagit