summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Vector.hs
diff options
context:
space:
mode:
authorTracy Wadleigh <tracy.wadleigh@gmail.com>2009-04-24 13:58:33 +0000
committerTracy Wadleigh <tracy.wadleigh@gmail.com>2009-04-24 13:58:33 +0000
commitc210311be639e8774dca25a332542d6b64ce3ca3 (patch)
tree032457af80ff755d97a3e7e1922ceaf5eaf2aa62 /lib/Data/Packed/Vector.hs
parent3ccfccc82aa1cf374af1b822087fb6c4fd41b3c3 (diff)
More defined list-to-V/M operators: (|>|), (>|<).
Provides analogs of the (|>) and (><) operators that first apply an appropriate 'take' to the given lists so that they may be safely used on lists that are too long (or infinite) -- a feature I find particularly useful from the interactive prompt. As these operators are more defined, I would ask the package maintainer to consider, rather than adding (|>|) and (>|<), just updating the definitions of (|>) and (><) with the new semantics.
Diffstat (limited to 'lib/Data/Packed/Vector.hs')
-rw-r--r--lib/Data/Packed/Vector.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Data/Packed/Vector.hs b/lib/Data/Packed/Vector.hs
index e53d455..ae30c27 100644
--- a/lib/Data/Packed/Vector.hs
+++ b/lib/Data/Packed/Vector.hs
@@ -14,7 +14,7 @@
14 14
15module Data.Packed.Vector ( 15module Data.Packed.Vector (
16 Vector, 16 Vector,
17 fromList, (|>), toList, 17 fromList, (|>), (|>|), toList,
18 dim, (@>), 18 dim, (@>),
19 subVector, join, 19 subVector, join,
20 constant, linspace, 20 constant, linspace,