Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Symta is crazy and unreadable

Name: Anonymous 2022-11-18 22:34

Given a list L, take last 6 elements of that list, and remove the last of these 6 elements, returning the 5 elements in front. If the list has less than 6 elements or isn't even a list at all, return 42

In Symta that is solved with a simple expression:
L(42:@_ ~/5 _)
https://imgur.com/a/bBvr2n6


In your Pissthon/JustShit/LUserAss it is solved as...

Name: Anonymous 2022-11-21 23:28

return size(x,1)>6? x[end-5:end] : 42;

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List