summaryrefslogtreecommitdiff
path: root/lc
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-02-22 15:15:23 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-02-22 15:15:44 +0100
commit23b42e612a6a7864428674b3c9d63ed86fc07435 (patch)
tree79bea78eba5d508ef9d4072c9721a4c09f87a000 /lc
parent94dead004d04bd80db17429859454981513be814 (diff)
rename: fetch_ --> fetch; fetchArrays_ --> fetchArrays
Diffstat (limited to 'lc')
-rw-r--r--lc/Builtins.lc7
1 files changed, 2 insertions, 5 deletions
diff --git a/lc/Builtins.lc b/lc/Builtins.lc
index 23035684..9484a9d9 100644
--- a/lc/Builtins.lc
+++ b/lc/Builtins.lc
@@ -313,15 +313,12 @@ mapPrimitive f (PrimLine a b) = PrimLine (f a) (f b)
313mapPrimitive f (PrimTriangle a b c) = PrimTriangle (f a) (f b) (f c) 313mapPrimitive f (PrimTriangle a b c) = PrimTriangle (f a) (f b) (f c)
314-} 314-}
315 315
316fetch_ :: forall a t . (AttributeTuple t) => String -> t -> PrimitiveStream a t 316fetch :: forall a t . (AttributeTuple t) => String -> t -> PrimitiveStream a t
317fetchArrays_ :: forall a t t' . (AttributeTuple t, t ~ HList (map ListElem (HListElem t'))) => t' -> PrimitiveStream a t 317fetchArrays :: forall a t t' . (AttributeTuple t, t ~ HList (map ListElem (HListElem t'))) => t' -> PrimitiveStream a t
318 318
319mapPrimitives :: (a -> b) -> PrimitiveStream p a -> PrimitiveStream p b 319mapPrimitives :: (a -> b) -> PrimitiveStream p a -> PrimitiveStream p b
320mapPrimitives f = map (mapPrimitive f) 320mapPrimitives f = map (mapPrimitive f)
321 321
322fetch s a t = fetch_ @a s t
323fetchArrays a t = fetchArrays_ @a t
324
325------------------- 322-------------------
326 323
327data Maybe a 324data Maybe a