File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,12 @@ Brings up the documentation for purescript-mode-hook."
432
432
(goto-char (+ (line-beginning-position )
433
433
col))))
434
434
435
+ (defun purescript-string-take (string n )
436
+ " Take n chars from string."
437
+ (substring string
438
+ 0
439
+ (min (length string) n)))
440
+
435
441
(defun purescript-mode-message-line (str )
436
442
" Message only one line, multiple lines just disturbs the programmer."
437
443
(let ((lines (split-string str " \n " t )))
Original file line number Diff line number Diff line change 1
1
; ;; purescript-string.el --- string manipulation utilties -*- lexical-binding : t -*-
2
- ;;;### autoload
3
- (defun purescript-string-take (string n )
4
- " Take n chars from string."
5
- (substring string
6
- 0
7
- (min (length string) n)))
8
-
9
2
;;;### autoload
10
3
(defun purescript-is-prefix-of (x y )
11
4
" Is x string a prefix of y string?"
You can’t perform that action at this time.
0 commit comments