2 added 33 characters in body
source | link

><>, 1614 Bytes

Thanks @Sp3000 for saving 2 bytes

Quick, but kinda cool solution. Probably not an ideal golf, but utilizes an interesting feature of ><>.

<v ip02ii
n<>n<,n;;

Receives input through the numerical interpretation of ascii characters (i.e. a is 97). It places the second character read (the operator) in the space after <v. Because dividing in ><> uses ,, not /, I make use of the fact that / reflects the pointer to accommodate for that case.

Alternate solution if that's invalid (+4 Bytes):

<v %cip02i%ci
n<>n<,n;;

For this we just take mod 12 (c pushes 12) of the input since 0 is 48 and there are only 10 characters.

If , could be used in place of /, this would be a lot shorter (something like ii60pi n; or ic%ia0pic% n;)

Golf suggestions gladly welcome -- I'm rather tired right now.

><>, 16 Bytes

Quick, but kinda cool solution. Probably not an ideal golf, but utilizes an interesting feature of ><>.

<v ip02ii
n<>,n;

Receives input through the numerical interpretation of ascii characters (i.e. a is 97). It places the second character read (the operator) in the space after <v. Because dividing in ><> uses ,, not /, I make use of the fact that / reflects the pointer to accommodate for that case.

Alternate solution if that's invalid (+4 Bytes):

<v %cip02i%ci
n<>,n;

For this we just take mod 12 (c pushes 12) of the input since 0 is 48 and there are only 10 characters.

If , could be used in place of /, this would be a lot shorter (something like ii60pi n; or ic%ia0pic% n;)

Golf suggestions gladly welcome -- I'm rather tired right now.

><>, 14 Bytes

Thanks @Sp3000 for saving 2 bytes

Quick, but kinda cool solution. Probably not an ideal golf, but utilizes an interesting feature of ><>.

<v ip02ii
n<,;

Receives input through the numerical interpretation of ascii characters (i.e. a is 97). It places the second character read (the operator) in the space after <v. Because dividing in ><> uses ,, not /, I make use of the fact that / reflects the pointer to accommodate for that case.

Alternate solution if that's invalid (+4 Bytes):

<v %cip02i%ci
n<,;

For this we just take mod 12 (c pushes 12) of the input since 0 is 48 and there are only 10 characters.

If , could be used in place of /, this would be a lot shorter (something like ii60pi n; or ic%ia0pic% n;)

Golf suggestions gladly welcome -- I'm rather tired right now.

1
source | link

><>, 16 Bytes

Quick, but kinda cool solution. Probably not an ideal golf, but utilizes an interesting feature of ><>.

<v ip02ii
n<>,n;

Receives input through the numerical interpretation of ascii characters (i.e. a is 97). It places the second character read (the operator) in the space after <v. Because dividing in ><> uses ,, not /, I make use of the fact that / reflects the pointer to accommodate for that case.

Alternate solution if that's invalid (+4 Bytes):

<v %cip02i%ci
n<>,n;

For this we just take mod 12 (c pushes 12) of the input since 0 is 48 and there are only 10 characters.

If , could be used in place of /, this would be a lot shorter (something like ii60pi n; or ic%ia0pic% n;)

Golf suggestions gladly welcome -- I'm rather tired right now.