[prev in list] [next in list] [prev in thread] [next in thread]
List: perl6-language
Subject: Re: This seems to be wrong
From: Timo Paulssen <timo () wakelift ! de>
Date: 2016-09-19 14:09:22
Message-ID: 5ec76c68-8b19-c9a3-e9bd-cfebf35e4640 () wakelift ! de
[Download RAW message or body]
On 19/09/16 15:56, Aaron Sherman wrote:> You can also use map, but it's
slightly clunkier: > > "for @inputs.map: .Int -> $i { ... }"
This also needs to have "*.Int" or "{ .Int }" otherwise you'll pass
$_.Int as the argument to map rather than telling map to call .Int on
things.
[Attachment #3 (text/html)]
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 19/09/16 15:56, Aaron Sherman wrote:<span style="white-space: pre;">
> You can also use map, but it's slightly clunkier:
>
> "for @inputs.map: .Int -> $i { ... }"
</span><br>
This also needs to have "*.Int" or "{ .Int }" otherwise you'll pass
$_.Int as the argument to map rather than telling map to call .Int
on things.<br>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic