Post History
J, 35 char <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_) How it works: NB. <: subtract one from number result on right NB. # count number of items from list result on righ...
Answer
#7: Post edited
- # J, 35 char
- ```
- <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)
- ```
- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
**Someone please tell me where I can find the formatting guidelines; I can't find them.**`
- # J, 35 char
- ```
- <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)
- ```
- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
#6: Post edited
- # J, 35 char
> <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
- **Someone please tell me where I can find the formatting guidelines; I can't find them.**`
- # J, 35 char
- ```
- <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)
- ```
- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
- **Someone please tell me where I can find the formatting guidelines; I can't find them.**`
#5: Post edited
- # J, 35 char
`<:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)`- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
- **Someone please tell me where I can find the formatting guidelines; I can't find them.**`
- # J, 35 char
- > <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)
- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
- **Someone please tell me where I can find the formatting guidelines; I can't find them.**`
#4: Post edited
- # J, 35 char
[<:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)]- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
**Someone please tell me where I can find the formatting guidelines; I can't find them.**
- # J, 35 char
- `<:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)`
- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
- **Someone please tell me where I can find the formatting guidelines; I can't find them.**`
#3: Post edited
- # J, 35 char
> <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
- **Someone please tell me where I can find the formatting guidelines; I can't find them.**
- # J, 35 char
- [<:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)]
- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
- **Someone please tell me where I can find the formatting guidelines; I can't find them.**
#2: Post edited
- # J, 35 char
- > <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)
- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
`
- # J, 35 char
- > <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_)
- **How it works:**
- NB. <: subtract one from number result on right
- NB. # count number of items from list result on right
- NB. -: if intermediate result is even, half the value
- NB. ` make a gerund from verb to left and verb to right
- NB. (>:@:*&3) if intermediate result is odd, multiply by 3
- NB. @. choose from gerund using index on right
- NB. (2&|) mod 2 used as index into gerund on left
- NB. ^:(1&<) repeat verb on left while intermediate value is >1
- NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list
- **Someone please tell me where I can find the formatting guidelines; I can't find them.**
#1: Initial revision
# J, 35 char > <:#-:`(>:@:*&3)@.(2&|)^:(1&<)^:(<_) **How it works:** NB. <: subtract one from number result on right NB. # count number of items from list result on right NB. -: if intermediate result is even, half the value NB. ` make a gerund from verb to left and verb to right NB. (>:@:*&3) if intermediate result is odd, multiply by 3 NB. @. choose from gerund using index on right NB. (2&|) mod 2 used as index into gerund on left NB. ^:(1&<) repeat verb on left while intermediate value is >1 NB. ^:(<_) repeat verb on left until intermediate value stops changing and keep intermediate values in a list `