Yes Thomas you are correct, it was my typo. The definition is correct. the 
result was mistyped!

Thanks

Richard
________________________________
From: Programming <programming-boun...@forums.jsoftware.com> on behalf of 
Thomas Bulka <thomas.bu...@constraintegic.net>
Sent: 26 August 2023 12:54
To: programm...@jsoftware.com <programm...@jsoftware.com>
Subject: Re: [Jprogramming] integers occur in integers?


Richard Donovan <rsdono...@hotmail.com> writes:

> I am trying to find out whether a series of integers y only contain a set of 
> integers x
>
> That is,        1 3 5 verb 5311 10531 536 1111111
>  should return 1 0 1 1
>
>    NB. only 1 3 5 occur in 5311
>    NB. not only 1 3 5  occur in 10531
>    NB. not only 1 3 5  occur in 536
>    NB. only 1 3 5 occur in 1111111
>
>  NB. x only contains digits 0-9 without repeat. #x is max 10
>  NB. leading zeros should be ignored in elements of y. No max for #y
>
> I have tried several methods using combinations of e. i. under< etc. but 
> haven't yet found a succinct verb that achieves what I want.
>
> I hope my description is clear
>
> Help gratefully received!
> ----------------------------------------------------------------------
> For information about J forums see 
> https://gbr01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=05%7C01%7C%7Cbb9ac77931cb4e9ce5eb08dba62b9da6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638286478502077478%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HgSNer0h3Rnr3cwX%2BSoE2HuTGLMVU735fNQHiZGxn%2Bk%3D&reserved=0<http://www.jsoftware.com/forums.htm>

Hi Richard,

just to make it clear (because I'm probably missing your point): Why do
you want to have the return value 1 0 1 1? Considering your comments, I
would expect the desired result to be 1 0 0 1. Am I wrong?

Regards,

Thomas
----------------------------------------------------------------------
For information about J forums see 
https://gbr01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&data=05%7C01%7C%7Cbb9ac77931cb4e9ce5eb08dba62b9da6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638286478502077478%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HgSNer0h3Rnr3cwX%2BSoE2HuTGLMVU735fNQHiZGxn%2Bk%3D&reserved=0<http://www.jsoftware.com/forums.htm>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to