[Jprogramming] Joining up a rank-1 array of integers
bill lam
bbill.lam at gmail.com
Mon Sep 9 03:44:19 UTC 2013
I used the fork [-.-. for interesetion. (-. twice again)
Вс, 08 сен 2013, Joey K Tuttle писал(а):
> Another (related, and also using -. (twice!)) expression that I use a
> lot for getting just the digits from a string -
>
> digits=: -.&(a.-.'0123456789')
>
> digits ": 23 45 6
> 23456
>
>
> On 2013/09/08 19:54 , Alex Giannakopoulos wrote:
> >That 'less' verb is very useful, I'd never had occasion to use it until now!
> >It could have been a bit more hyped up in the documentation, though, I'd
> >never even seen it used before! (blush)
> >
> >
> >
> >On 9 September 2013 03:46, Alex Giannakopoulos<aegean at blueyonder.co.uk>wrote:
> >
> >>>Ah, OK, now I got it!
> >>>
> >>>(": 23 45 6) -. ' '
> >>>
> >>>23456
> >>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
More information about the Programming
mailing list