`position' in rep...?
- From: Christopher Roy Bratusek <nano tuxfamily org>
- To: General discussion about sawfish wm <sawfish-list gnome org>
- Subject: `position' in rep...?
- Date: Sun, 29 May 2011 14:18:31 +0200
Hi all,
just a small question, whether I'm blind, or whether rep really doesn't
ship a function like `position'.
so `nth' gives the the value of the nth element:
(setq mylist '("Crux" "StyleTab" "get-S-tabbed"))
(nth 1 mylist)
=> StyleTab
but now for the opposite? other lisps do ship `position':
(position "Crux" mylist)
=> 0
Now it seems to me that REP does not ship a position function? Atleast I
couldn't find one in the docs neither via `git grep'. I think that's
essential, so I'm sure it's somewhere. Or... did John expect everyone to
loop through lists?
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]