Talk:Between

From Esolang
Jump to navigation Jump to search

Your truth machine suggests i inputs an integer. Is this correct, and if so is there any way to change it to string? Also is there any way to take the nth character of a string? It looks like negate could be used to subtract as well if you allow it to accept integers. Plokmijnuhby (talk)

Oops yes. The input is supposed to input string. I'll add a thing for converting numerals between integer and string. Not sure what you mean about the negate thing.Saka (talk) 11:40, 7 June 2018 (UTC)
I was thinking negate could be used effectively as a minus sign. Whilst there is no subtract operation, you could then use [arg1]+|[arg2]n.| to take arg2 from arg1. There are clumsier ways to do subtraction without this, though. I'm also slightly confused by the new c operator: what might 'Hello World!'c. return, and what about |999|c.? Plokmijnuhby (talk)
'Hello World!'c. would return an error since "Hello World!" can't be converted into an integer and |999|c. would return '999' as a string.Saka (talk) 13:50, 7 June 2018 (UTC)