Skip to content

Commit 396cedd

Browse files
committed
add _ argument to nl
1 parent 1ac735e commit 396cedd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

config/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.7.3
1+
9.7.4

main/stdlib.ijs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,11 @@ NB.- if empty use: 0 1 2 3.
341341
NB.- mp: optional matching pattern. If mp contains '*', list names
342342
NB.- containing mp, otherwise list names starting mp. If mp
343343
NB.- contains '~', list names that do not match.
344+
NB.- if mp contains '_', list names with the locale name
344345
NB.-
345346
NB.- e.g. 'f' nl 3 - list verbs that begin with 'f'
346347
NB.- '*com nl '' - list names containing 'com'
348+
NB.- '_com nl '' - as above, and with the locale name
347349
nl=: 3 : 0
348350
'' nl y
349351
:
@@ -358,12 +360,13 @@ end.
358360
if. 0 e. #nms do. return. end.
359361

360362
if. #t=. x -. ' ' do.
361-
'n s'=. '~*' e. t
362-
t=. t -. '~*'
363+
'n s l'=. '~*_' e. t
364+
t=. t -. '~*_'
363365
b=. t&E. &> nms
364366
if. s do. b=. +./"1 b
365367
else. b=. {."1 b end.
366368
nms=. nms #~ n ~: b
369+
if. l do.nms=. nms (,'_',,&'_') each coname '' end.
367370
end.
368371
)
369372

0 commit comments

Comments
 (0)